How Graph differential equations with Matlab
Show older comments
Looking to get some help on how to use matlab to solve the following equation problem 1, all help is appreciated! Thank You! I haven't used matlab in 2 years very rusty, image is reference to original problem statement. List of equations
%%PROBLEM 1
syms y(x)
ode = y*diff(y,x)+36*x == 0;
ySol(x) = dsolve(ode)
ezplot(y(x))
1 Comment
Rena Berman
on 12 Dec 2019
(Answers Dev) Restored edit
Accepted Answer
More Answers (1)
Ritesh
on 22 Dec 2023
0 votes
syms y(x) ode = y*diff(y,x)+36*x == 0; ySol = dsolve(ode, y(0) == 0) figure subplot(2,1,1) ezplot(real(ySol(1))) subplot(2,1,2) ezplot(imag(ySol(1))) figure subplot(2,1,1) ezplot(real(ySol(2))) subplot(2,1,2) ezplot(imag(ySol(2)))
1 Comment
Dyuman Joshi
on 22 Dec 2023
Edited: Dyuman Joshi
on 22 Dec 2023
This non-formatted code is copy-pasted from Star Strider's (accepted) answer.
If you want to give an answer, I recommend you provide an original one. This blatantly copied answer will be deleted soon.
And if you had researched a bit to give an original answer, you would have found out the using ezplot is not recommended.
Categories
Find more on Mathematics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!