How graph second order differential equations with Matlab?
Mostra commenti meno recenti
Looking to get some help on how to use matlab to solve the following equation problem 6, all help is appreciated! Thank You! I haven't used matlab in 2 years very rusty, image is reference to original problem statement.
4y"-20y'+25y=0
%%PROBLEM 6
clear; syms y(x)
ode = 4*diff(y,x,2) - 20*diff(y,x) + 25*y == 0;
%ySol(x) = dsolve(ode)
%ezplot('ode')
ySol = dsolve(ode, y(0) == 0)
figure
subplot(2,1,1)
ezplot(real(ySol(1)))
subplot(2,1,2)
ezplot(imag(ySol(1)))
ERROR
Warning: Contour not rendered for constant ZData
> In contour (line 52)
In ezplot>ezimplicit (line 315)
In ezplot (line 153)
In sym/ezplot (line 61)
1 Commento
Rena Berman
il 12 Dic 2019
(Answers Dev) Restored edit
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Calculus in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!