Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
I am very new to Matlab and I am trying to graph y'=ky, y(0) = A.
Can anyone assist?

Respuesta aceptada

Walter Roberson
Walter Roberson el 24 de Jun. de 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 comentarios
JB
JB el 30 de Jun. de 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 el 30 de Jun. de 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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by