22.06.2015 Views

CIFER®-MATLAB Interfaces: Development and ... - Cal Poly

CIFER®-MATLAB Interfaces: Development and ... - Cal Poly

CIFER®-MATLAB Interfaces: Development and ... - Cal Poly

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

to either the linearized phase <strong>and</strong> coherence plot or the least squares fit in CIFER ® so those<br />

options are not available to the cifxover function.<br />

>> name = 'XVLATSWP_FRE_A0000_AIL_P';<br />

>> corrections = [2,5,90,0.5];<br />

>> plot = 'Y';<br />

>> save = 'Y';<br />

>> savename = 'XVLATSWP_BAN_A0000_AIL_P';<br />

>> cifxover(0,'name',name,'cor_list',corrections,'mpcplt',plot,'save',<br />

save,'savename',savename,'toscrn','off');<br />

Again it should be noted that care should be used when employing the 0 flag for inputs as<br />

response names are not assumed by the code. Output information is stored in the same fashion as<br />

cifhq. The first two variables contain the numeric values for the crossover characteristics, <strong>and</strong> the<br />

last variable has the frequency range of the response.<br />

>> [X0db,Xn180db,frng]=cifxover(0,'name','XVLATSWP_FRE_A0000_AIL_P',<br />

'toscrn','off');<br />

>> disp(X0db)<br />

0 0<br />

>> disp(Xn180db)<br />

27.8183 180.0000<br />

29.4783 -180.0000<br />

54.7285<br />

63.2869<br />

30.1053 -180.0000 52.2747<br />

>> disp(frng)<br />

0.1396 31.4159<br />

cifarith:<br />

This utility allows basic arithmetic (+,-,*,/) to be performed on two frequency responses. The<br />

results are saved to a new response file. A very simple example of running the arithmetic function<br />

is shown below:<br />

>> in=cifarith;<br />

>> in.names = {'XVLATSWP_FRE_A0000_AIL_P','XVLATSWP_FRE_A0000_AIL_R'};<br />

>> in.outname = 'test';<br />

>> in.outid = 'arith resp from Matlab';<br />

>> cifarith(in)<br />

Response test written to the database.<br />

*** Arithmetic operation successful ***<br />

Minimum Frequency is: 0.1396<br />

Maximum Frequency is: 31.4159<br />

1000 Values in Output Response<br />

Units are in RAD<br />

79

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!