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.

as input <strong>and</strong> up to five outputs to collect the desired information. The least complex call <strong>and</strong> the<br />

corresponding output are shown below:<br />

>> in = cifrms;<br />

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

>> cifrms(in);<br />

**** Frequency Response Information ****<br />

First Freq: 0.13963<br />

Last Freq: 31.41590<br />

Number of values in frequency response: 923<br />

**** Mean-square value results ****<br />

Mean Square Value = 9.244088<br />

Root Mean Squared Value = 3.040409<br />

In this example the name of a frequency response is specified; when the structure is created it<br />

assumes defaults for inputs such as source <strong>and</strong> input/output integration selection. These defaults<br />

are defined in Appendix F <strong>and</strong> can be accessed by an empty call to the function as mentioned<br />

above. Single-character inputs such as those for source are not case-sensitive. No outputs need be<br />

specified; the function will print all the results to the screen. A more complex call is shown below<br />

without the printed output, <strong>and</strong> using name-value pairs for input. The name-value pairs do not<br />

have to be specified in a particular order as long as they occur in pairs.<br />

>> in = cifrms;<br />

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

>> scorrect = 2;<br />

>> minfreq = 10;<br />

>> maxfreq = 30;<br />

>><br />

[msv,rms,pts,min,max]=cifrms(in,'name',name,'spower',scorrect,'minfreq',<br />

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

This example specifies limits to the frequency range examined <strong>and</strong> sets the ‘power of s’<br />

correction factor to 2. The default values can be used for these variables by assigning the inputs a<br />

value of 0. The output variables store the information that results from the function call; ‘msv’<br />

<strong>and</strong> ‘rms’ store the mean square value <strong>and</strong> root mean squared value, respectively. The variable<br />

'pts' stores the number of points in the response, <strong>and</strong> ‘min’ <strong>and</strong> ‘max’ store the minimum <strong>and</strong><br />

maximum frequencies in the response. Fewer outputs can be specified if desired. Finally, the<br />

printed output can be turned off by the ‘toscrn’ field in the structure.<br />

One other feature of the cifrms function is the ability to calculate a fraction of a full range rms<br />

value. The ‘minfreq’ <strong>and</strong> ‘maxfreq’ fields must be set equal to use this option. The printed output<br />

is slightly different <strong>and</strong> the variable outputs change slightly. ‘msv’ stores the full range rms value,<br />

75

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

Saved successfully!

Ooh no, something went wrong!