How to plot a function like this in matlab

1 view (last 30 days)
exp(-ax+bx^2) where x ranges from 5-250 in order of 1.

Accepted Answer

Walter Roberson
Walter Roberson on 23 Feb 2013
x = 5 : 250;
y = exp(-a*x + b*x.^2);
plot(x, y)

More Answers (0)


Find more on 2-D and 3-D Plots in Help Center and File Exchange



Community Treasure Hunt

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

Start Hunting!