Borrar filtros
Borrar filtros

fplot() for three functions

1 visualización (últimos 30 días)
Shuqing Qi
Shuqing Qi el 6 de Feb. de 2021
Comentada: Shuqing Qi el 7 de Feb. de 2021
I wonder why my fplot()s output errors instead of the graph below?

Respuesta aceptada

Alan Stevens
Alan Stevens el 6 de Feb. de 2021
Try using limits, e.g.
fplot(@(t) 16/3*exp(-2*t)-4/3*exp(-8*t), [0 20]);
Also use
t.*exp(...etc) not t*exp(...etc)
  3 comentarios
Alan Stevens
Alan Stevens el 6 de Feb. de 2021
You need to use
exp(-4*t).*cos(3*t)
and
exp(-4*t).*sin(3*t)
Shuqing Qi
Shuqing Qi el 7 de Feb. de 2021
That works! Thanks a lot!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by