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.

The template sets all values to the defaults found when the arithmetic utility in CIFER ® is first<br />

run. For example, all scale factors are set to 1, the operation is multiplication, <strong>and</strong> the source <strong>and</strong><br />

destination point to the database. Any of these values can be modified either by changes to the<br />

appropriate field in the structure or by using the field name <strong>and</strong> value as a pair of inputs. The<br />

above example could be compressed into one call as follows. There are no output variables for<br />

this function, <strong>and</strong> as before the ‘toscrn’ field allows the user to turn off the printed return<br />

information.<br />

>> cifarith(0,'names',{'XVLATSWP_FRE_A0000_AIL_P',<br />

'XVLATSWP_FRE_A0000_AIL_R'},'outname','test','outid','arith resp<br />

from Matlab','toscrn','off')<br />

cifplot:<br />

The cifplot function is the <strong>MATLAB</strong> comm<strong>and</strong> line call for CIFER's utility 19, the frequency<br />

response plotting. A basic set of calls to cifplot are shown below:<br />

>> in = cifplot;<br />

>> in.array(1:3) = [1,2,3];<br />

>> in.names(1) = {'XVLATSWP_FRE_A0000_AIL_P'};<br />

>> cifplot(in);<br />

Reading data .......<br />

Plotting successful<br />

After this call, the st<strong>and</strong>ardized CIFER ® plot would be displayed to the screen. As with the<br />

previous functions, the call can be simplified using name-value pairs as input. The previous<br />

example could be reduced as follows. There are no output variables for this function.<br />

>> cifplot(0,'array',[1,2,3,0,0],'names',<br />

{'XVLATSWP_FRE_A0000_AIL_P','','','','',''})<br />

Reading data .......<br />

Plotting successful<br />

80

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

Saved successfully!

Ooh no, something went wrong!