How do you plot this differential equation on matlab?
C(dV/dt) = I(t) - V(t)/R
Where C= 100e-12 F
R = .6e-9 Ohms
Vrest = -65e-3 V
And I(t) is ay simple function of t (I=t)
And we are solving for V

2 Kommentare

madhan ravi
madhan ravi am 25 Feb. 2019
Brest is the initial condition?
Ashwin Krishna
Ashwin Krishna am 25 Feb. 2019
Yes, it is.

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

madhan ravi
madhan ravi am 25 Feb. 2019
Bearbeitet: madhan ravi am 25 Feb. 2019

0 Stimmen

syms V(t)
C=...
R=...
Vrest=...
ode=C*diff(V)==t-V/R;
V(t)=dsolve(ode,V(0)==Vrest);
fplot(V(t))

Weitere Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by