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

velProfile(x)
%
% Copyright 2012 The MathWorks, Inc.
function [time,vel] = velProfile(x)

rs = x(1);
eo = x(2);
c1 = x(3);
c2 = x(4);

tb = velocity.tb(rs, eo, c1, c2);
ts = velocity.ts(rs, eo, c1, c2);

t1 = linspace(0,rs,20);
t2 = linspace(rs,eo,20);
t3 = linspace(eo,c1,20);
t4 = linspace(c1,c2,20); 
t5 = linspace(c2,tb,20);
t6 = linspace(tb,ts,20);

v1 = velocity.vel1(t1, rs, eo, c1, c2);
v2 = velocity.vel2(t2, rs, eo, c1, c2);
v3 = velocity.vel3(t3, rs, eo, c1, c2);
v4 = velocity.vel4(t4, rs, eo, c1, c2);
v5 = velocity.vel5(t5, rs, eo, c1, c2);
v6 = velocity.vel6(t6, rs, eo, c1, c2);

time = [t1, t2, t3, t4, t5, t6];
vel = [v1, v2, v3, v4, v5, v6];

Contact us