MATLAB: How to plot a functions in matlab

MATLABplot

x ranges from 10-50 and y = [exp(-x)/x] – [exp(-(2+x))/(2+x)]

Best Answer

x = 10:0.1:50;
y = (exp(-x)./x) - (exp(-(2+x))./(2+x));
plot(x,y)
Related Question