Code covered by the BSD License  

Highlights from
Using Analytical Tools to Gain Insight and Speed-up Num. Analysis in MATLAB & Symbolic Math Toolbox

image thumbnail

Using Analytical Tools to Gain Insight and Speed-up Num. Analysis in MATLAB & Symbolic Math Toolbox

by

 

28 Jan 2013 (Updated )

files from the webinar

createMLfunctions.m
%
% Copyright 2012 The MathWorks, Inc.
nb = mupad('BLOODHOUND_SSC.mn');

varNames = {'RocketStartTime','EngineOffTime', 'Chute1Time', 'Chute2Time'};

%%
distance = getVar(nb,'TotalDistance');
matlabFunction(real(distance),'file','+helper\totalDistance', 'vars', varNames);

%%
distance1000 = getVar(nb,'DistOver1000');
matlabFunction(real(distance1000),'file','+helper\distOver1000', 'vars', varNames);

%%
massConsumed = getVar(nb,'TotalMassConsumed');
matlabFunction(massConsumed, 'file', '+helper\totalMassConsumed', 'vars', varNames);

%% 
time = getVar(nb,'t1000_2');
matlabFunction(time, 'file', '+helper\timeReturnd1000', 'vars', varNames);

%%
v3 = getVar(nb, 'v3');
matlabFunction(v3, 'file', '+helper\velCoasting', 'vars', [{'t'}, varNames]);

%%
v4 = getVar(nb, 'v4');
matlabFunction(v4, 'file', '+helper\velChute1open', 'vars', [{'t'}, varNames]);

%%
ts = getVar(nb, 'tStop');
matlabFunction(time, 'file', '+helper\timeStop', 'vars', varNames);

Contact us