I am very new to Matlab and I am trying to graph y'=ky, y(0) = A. Can anyone assist?
1 view (last 30 days)
Show older comments
I am very new to Matlab and I am trying to graph y'=ky, y(0) = A.
Can anyone assist?
0 Comments
Accepted Answer
Walter Roberson
on 24 Jun 2018
syms y(t) k A
Y = dsolve(diff(y)==k*y,y(0)==A);
YY = subs(Y, [A,k], [randn()*50,randn()/2]);
fplot(YY, [-10 10])
4 Comments
More Answers (0)
See Also
Categories
Find more on Introduction to Installation and Licensing 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!