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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CIFER ® main programs<br />

The three main CIFER ® -<strong>MATLAB</strong> interface functions are designed to give users the<br />

functionality of the CIFER ® programs FRESPID, MISOSA <strong>and</strong> COMPOSITE by making calls<br />

from the <strong>MATLAB</strong> workspace. All the functions are structured in the same manner with two<br />

required inputs. The first input is either the name of the desired CIFER ® case or a <strong>MATLAB</strong><br />

structure that contains information representing a CIFER ® case. The second input is the flag to<br />

execute a particular comm<strong>and</strong> on that case. The comm<strong>and</strong>s that can be performed are to open a<br />

case, save data to a case or run a case as a batch job.<br />

CIFER ® # CIFER ® Program <strong>MATLAB</strong> Function<br />

1 FRESPID frespid<br />

2 MISOSA misosa<br />

3 COMPOSITE composite<br />

To facilitate the organization of information that goes into a CIFER ® case, <strong>MATLAB</strong> structures<br />

are used to store case data. The fields in these structures correlate to the field entries of the<br />

CIFER ® screen interface. The <strong>MATLAB</strong> interface has optional inputs that allow users to specify<br />

values for a particular field using name-value pairs. This allows the user to modify parts of the<br />

structure without dealing with the entire structure. Invoking the ‘help functionname’ comm<strong>and</strong><br />

from <strong>MATLAB</strong> will display examples of using each function as well as a detailed list of the<br />

CIFER ® information each field stores. The contents of these help comm<strong>and</strong>s can also be found in<br />

Appendix C.<br />

CIFER ® should be set to the database to be used (by selecting the appropriate SIFDEF file) prior<br />

to using these <strong>MATLAB</strong> functions. If the database is changed by changing the SIFDEF file,<br />

<strong>MATLAB</strong> must be restarted.<br />

Features common to all three main programs:<br />

The structures for each of the programs contain many fields, thus the functions have been set up<br />

to do as much of the work of filling the fields in as possible for the user. Each function can be<br />

called with no inputs or outputs to return a list of what type of data is contained in each field;<br />

integers, cell arrays, scalar arrays, etc. The default value for each field is also specified in this<br />

call. This information can also be found in Appendix D. Users can initialize a mostly empty<br />

69

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

Saved successfully!

Ooh no, something went wrong!