Clear Filters
Clear Filters

how do i dfferentiate u with respect to t?

1 view (last 30 days)
mi=2290000;
mf=130000;
tb=165;
t=linspace(0,165);
mr=mi-((mi-mf)*(t/tb));
hold all
g = 9.81;
Isp=263;
u=g.*(Isp.*log(mi./mr)-t);
f1=figure;
plot (t,u, 'red')
p = cumtrapz(t,u);
f2=figure;
plot(t,p, 'blue')

Accepted Answer

Walter Roberson
Walter Roberson on 30 Nov 2019
Edited: Walter Roberson on 30 Nov 2019
gradient(u, t(2)-t(1))

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!