Filter löschen
Filter löschen

I am very new to Matlab and I am trying to graph y'=ky, y(0) = A. Can anyone assist?

1 Ansicht (letzte 30 Tage)
I am very new to Matlab and I am trying to graph y'=ky, y(0) = A.
Can anyone assist?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 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 Kommentare
JB
JB am 30 Jun. 2018
For anyone reviewing this question and would like to get the latest update installation please visit the link here:
V/R jb
JB
JB am 30 Jun. 2018
@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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by