How to Plot Multivariate Differential Equation in MATLAB?

4 views (last 30 days)
I want to plot below equation in MATLAB.
V=(I)(R) - (R)(C)(dv/dt)
I= Current= 50nA
R=Resistance= 200 Mega Ohm
C=Capacitance= 50 pF
I want to plot this equation "V" versus time "t".
Can anyone help me out?

Accepted Answer

Star Strider
Star Strider on 9 Mar 2019
The symbolic approach:
syms I R V(t) t V0
I = sym(50E-9);
R = sym(200E+6);
C = sym(50E-12);
Eq = V == I*R - R*C*diff(V);
Vs(t) = dsolve(Eq, V(0) == 0)
fplot(Vs, [0, 0.1])
Experiment to get the result you want.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by