matlab ReadUI: new default AR order 0
This commit is contained in:
parent
a4611f1339
commit
d8599ca3a4
@ -31,6 +31,10 @@ if (nargin<2)
|
|||||||
path ='';
|
path ='';
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if (nargin<4)
|
||||||
|
AR_order = 0;
|
||||||
|
end
|
||||||
|
|
||||||
if (ischar(files))
|
if (ischar(files))
|
||||||
filenames{1}=files;
|
filenames{1}=files;
|
||||||
else
|
else
|
||||||
@ -55,7 +59,7 @@ for n=1:numel(filenames)
|
|||||||
[UI.FD{n}.f,UI.FD{n}.val] = FFT_time2freq( t,val );
|
[UI.FD{n}.f,UI.FD{n}.val] = FFT_time2freq( t,val );
|
||||||
else
|
else
|
||||||
UI.FD{n}.f = freq;
|
UI.FD{n}.f = freq;
|
||||||
if (nargin<4)
|
if (AR_order<=0)
|
||||||
UI.FD{n}.val = DFT_time2freq( t, val, freq );
|
UI.FD{n}.val = DFT_time2freq( t, val, freq );
|
||||||
else
|
else
|
||||||
[val_ar t_ar UI.FD{n}.val] = AR_estimate( t, val, freq, AR_order);
|
[val_ar t_ar UI.FD{n}.val] = AR_estimate( t, val, freq, AR_order);
|
||||||
|
Loading…
Reference in New Issue
Block a user