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.

frespid('XVLATSWP',3);<br />

Job file: /usr/cifer/jobs/FRE_XVLATSWP.COM.01 submitted<br />

Waiting for batch to finish...<br />

Batch completed.<br />

The log file is:/usr/cifer/jobs/FRE_XVLATSWP.OUT.01<br />

No error detected.<br />

>> misosa('XVLATSWP',3);<br />

>> composite('XVLATSWP',3);<br />

The example below will take the XVLATSWP case, copy it to TEST <strong>and</strong> then run it as a batch<br />

job all with a single comm<strong>and</strong>. The batch comm<strong>and</strong> always saves the case before it sends it to the<br />

batch job. To verify the name change was correct, the structure, which will contain information<br />

for TEST, is returned.<br />

>> out_f = frespid('XVLATSWP',3,'casename','TEST','caseout','TEST');<br />

frespid:<br />

This section contains information specific to the frespid function <strong>and</strong> will primarily cover the<br />

mechanics that mimic the functionality of FRESPID screens 7 <strong>and</strong> 8: conditioning <strong>and</strong><br />

windowing of data.<br />

Data conditioning in screen 7 is h<strong>and</strong>led with two fields in the frespid structure. The first field,<br />

‘conditioning,’ contains two rows; the first row stores a flag for the type of conditioning desired<br />

<strong>and</strong> the second row stores the value. The convention is that ‘1’ denotes expansion of data, ‘2’<br />

denotes decimation, <strong>and</strong> ‘3’ denotes filtering. The second field, ’condunit,’ contains the units to<br />

use in the case of filtering. The example below illustrates these variables.<br />

>> in<br />

>> in.conditioning(1:2,1:2)<br />

= frespid;<br />

= [3, 2; 4, 25];<br />

>> in.condunit(1) = 'Hz';<br />

The data in the example will be filtered at 4 Hertz <strong>and</strong> decimated to 25 Hertz. These operations<br />

are lumped into one somewhat ungainly variable because of how CIFER ® internally processes the<br />

data. The default value for ‘condunit’ is Hertz so it need not be specified unless Radians or nondimensional<br />

values are used. When returning conditioning output from CIFER ® to <strong>MATLAB</strong>, the<br />

function also defaults the units to Hertz. If cases created using conditioning are opened in<br />

CIFER ® , there may appear to be a small error in the ten or hundred thous<strong>and</strong>th decimal place.<br />

This is due to <strong>MATLAB</strong> using double precision while Fortran uses a combination of precisions.<br />

Numerous checks have verified that the end results are the same.<br />

72

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

Saved successfully!

Ooh no, something went wrong!