CIFER®-MATLAB Interfaces: Development and ... - Cal Poly
CIFER®-MATLAB Interfaces: Development and ... - Cal Poly
CIFER®-MATLAB Interfaces: Development and ... - Cal Poly
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Appendix I:<br />
XVLATSWP Case Example<br />
This example shows the <strong>MATLAB</strong> comm<strong>and</strong>s used to fully set up <strong>and</strong> run the XVLATSWP<br />
sample case provided with installations of CIFER.<br />
% Assign a blank frespid structure<br />
f_in = frespid;<br />
thename = 'XVLATSP2';<br />
% Fill in all the necessary information to make the case<br />
f_in.casename<br />
= thename;<br />
f_in.comments<br />
= 'Matlab-created XVLATSWP case, new<br />
functions';<br />
f_in.caseout<br />
= thename;<br />
f_in.crosscor<br />
= 'Y';<br />
f_in.plot<br />
= 'N';<br />
% Time history selection parameters:<br />
f_in.source = 1;<br />
f_in.evntnum(1:2) = [883,884];<br />
f_in.flghtnum(1:2) = [150,150];<br />
f_in.thdt = 0.004;<br />
% channel definition parameters:<br />
f_in.controls(1:2)<br />
= {'AIL','RUD'};<br />
f_in.conunit(1:2)<br />
= {'deg','deg'};<br />
f_in.outputs(1:4)<br />
= {'P','R','AY','VDOT'};<br />
f_in.outunit(1:4)<br />
= {'deg/s','deg/s','ft/sec2',<br />
'ft/sec2'};<br />
f_in.conchnl(1:2,1)<br />
= {'D645','D284'};<br />
f_in.outchnl(1:4,1)<br />
= {'V012','V014','A300','VDOT'};<br />
f_in.outscfac(1:3,1) = [0.0175,0.0175,32.1740];<br />
% Conditioning parameters<br />
f_in.conditioning(1,1:2) = [3,2];<br />
f_in.conditioning(2,1:2) = [4,25];<br />
% Frequency response selection parameters<br />
f_in.frcalc(1:4,1:2)<br />
= {'*'};<br />
% Window Parameters<br />
f_in.winid<br />
= {'45 SECOND WINDOW'<br />
'40 SECOND WINDOW'<br />
'30 SECOND WINDOW'<br />
'20 SECOND WINDOW'<br />
'15 SECOND WINDOW'};<br />
f_in.winlen = [45,40,30,20,15];<br />
f_in.winon(1:5)<br />
= {'*'};<br />
% Save the structure into the database<br />
frespid(f_in,2);<br />
% Set up blank misosa case<br />
m_in = misosa;<br />
% Fill in appropriate values<br />
m_in.casename<br />
m_in.comments<br />
= thename;<br />
= 'Matlab-created XVLATSWP case';<br />
m_in.casein<br />
= thename;<br />
m_in.caseout<br />
m_in.controls(1:2)<br />
= thename;<br />
= {'AIL','RUD'};<br />
m_in.outputs(1:4) = {'P','R','AY','VDOT'};<br />
m_in.winon(1:5)<br />
m_in.frcalc(1:4)<br />
= {'*'};<br />
= {'*'};<br />
% save case to database<br />
misosa(m_in,2);<br />
102