MATLAB Answers

0

ODE non homogeneous ploting graph

Asked by idabagus mahartana on 19 Sep 2019
Latest activity Commented on by Renato SL on 19 Sep 2019
hello, everybody, is there any body who can help me to plot this equation in matlab.
y = -5e^2x+3e^x+3cosx+sinx
thanks.

  1 Comment

I think the documentation of the plot function (here) will help a lot.

Sign in to comment.

1 Answer

Answer by Stephan
on 19 Sep 2019
Edited by Stephan
on 19 Sep 2019
 Accepted Answer

y = @(x) -5.*exp(2.*x) + 3.*exp(x) + 3.*cos(x) + sin(x);
fplot(y,[-20 1],'b-',"LineWidth",2)

  0 Comments

Sign in to comment.