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

createVelocityFunctions.m
%
% Copyright 2012 The MathWorks, Inc.
% addpath(fullfile(pwd,'private'));

nb = mupad('BLOODHOUND_SSC.mn');

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

%%
v1 = getVar(nb, 'v1');
matlabFunction(v1, 'file', '+velocity\vel1', 'vars', [{'t'}, varNames]);

%%
v2 = getVar(nb, 'v2');
matlabFunction(v2, 'file', '+velocity\vel2', 'vars', [{'t'}, varNames]);

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

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

%%
v5 = getVar(nb, 'v5');
matlabFunction(v5, 'file', '+velocity\vel5', 'vars', [{'t'}, varNames]);

%%
v6 = getVar(nb, 'v6');
matlabFunction(v6, 'file', '+velocity\vel6', 'vars', [{'t'}, varNames]);

%%
tb = getVar(nb, 'tBrakes');
matlabFunction(tb, 'file', '+velocity\tb', 'vars', varNames);

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

Contact us