MATLAB Answers

ODE non homogeneous ploting graph

2 views (last 30 days)
idabagus mahartana
idabagus mahartana on 19 Sep 2019
Commented: 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

  1 Comment

Renato SL
Renato SL on 19 Sep 2019
I think the documentation of the plot function (here) will help a lot.

Sign in to comment.

Accepted Answer

Stephan on 19 Sep 2019
Edited: Stephan on 19 Sep 2019
y = @(x) -5.*exp(2.*x) + 3.*exp(x) + 3.*cos(x) + sin(x);
fplot(y,[-20 1],'b-',"LineWidth",2)


Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by