Quad Function Error Messages - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Quad Function Error Messages

wbcannonwbcannon Posts: 3Member
Hi,

I have been trying to find the area under a standard distribution curve, but am getting the following errors when run my .m file.

??? Error using ==> inline.subsref at 14
Not enough inputs to inline function.

Error in ==> quad at 76
y = f(x, varargin{:});

Error in ==> CannonBP4 at 7
quad('(e.^(-.5*((x-m)/sd).^2)/(sd.*(2*pi)^.5))','x',173.8-34.8,173.8+34.8)


Here is my code:
x=0:.1:350;
sd=34.80;
m=173.80;
e=2.718283;
y=(e.^(-.5*((x-m)/sd).^2)/(sd.*(2*pi)^.5));
plot(x,y)
quad('(e.^(-.5*((x-m)/sd).^2)/(sd.*(2*pi)^.5))','x',173.8-34.8,173.8+34.8)

Comments

Sign In or Register to comment.