how do i dfferentiate u with respect to t?

4 visualizzazioni (ultimi 30 giorni)
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')

Risposta accettata

Walter Roberson
Walter Roberson il 30 Nov 2019
Modificato: Walter Roberson il 30 Nov 2019
gradient(u, t(2)-t(1))

Più risposte (0)

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by