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 commentaires

madhan ravi
madhan ravi le 25 Fév 2019
Brest is the initial condition?
Ashwin Krishna
Ashwin Krishna le 25 Fév 2019
Yes, it is.

Connectez-vous pour commenter.

 Réponse acceptée

madhan ravi
madhan ravi le 25 Fév 2019
Modifié(e) : madhan ravi le 25 Fév 2019
syms V(t)
C=...
R=...
Vrest=...
ode=C*diff(V)==t-V/R;
V(t)=dsolve(ode,V(0)==Vrest);
fplot(V(t))

Plus de réponses (0)

Catégories

En savoir plus sur Symbolic Math Toolbox dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by