I am very new to Matlab and I am trying to graph y'=ky, y(0) = A. Can anyone assist?
1 次查看(过去 30 天)
显示 更早的评论
I am very new to Matlab and I am trying to graph y'=ky, y(0) = A.
Can anyone assist?
0 个评论
采纳的回答
Walter Roberson
2018-6-24
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])
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!