%---------------------------------------------------------------- % function [x,y] = LCGT2(noplot) % Matlab function to plot Finesse output data % Usage: % [x,y] = LCGT2 : plots and returns the data % [x,y] = LCGT2(1) : just returns the data % LCGT2 : just plots the data % Created automatically Tue Jul 06 14:20:22 2010 % by Finesse 0.99.8 (3355), 21.01.2010 %---------------------------------------------------------------- function [x,y] = LCGT2(noplot) data = load('LCGT2.out'); [rows,cols]=size(data); x=data(:,1); y=data(:,2:cols); mytitle='LCGT2 Tue Jul 06 14:20:22 2010'; if (nargin==0) figure('name','LCGT2'); plot(x, y(:,1)); legend(' n8'); set(gca, 'YScale', 'log'); ylabel('Abs '); set(gca, 'XLim', [1 10000]); set(gca, 'XScale', 'log'); xlabel('f [Hz] (sigLm1)'); grid on; title(mytitle); end switch nargout case {0} clear x y; case {2} otherwise error('wrong number of outputs'); end