MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by maharaj
on 23 Feb 2013

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

Answer by Walter Roberson
on 23 Feb 2013

Accepted answer

x = 5 : 250; y = exp(-a*x + b*x.^2); plot(x, y)

## 1 Comment

## Walter Roberson (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/64605#comment_131688

What are "a" and "b" ?