MATLAB: ODE non homogeneous ploting graph

non homogeneous equation

hello, everybody, is there any body who can help me to plot this equation in matlab.
y = -5e^2x+3e^x+3cosx+sinx
thanks.

Best Answer

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