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?

采纳的回答

Walter Roberson
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])
  4 个评论
JB
JB 2018-6-30
For anyone reviewing this question and would like to get the latest update installation please visit the link here:
V/R jb
JB
JB 2018-6-30
@Steven_Lord: The recent update worked well.
@Walter_Roberson: Your code worked perfectly after I installed the latest update.
Thank you both. V/R jb

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile 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!

Translated by