Matlab quad help - urgent!


by Jennifer2828
Tags: matlab, quad
Jennifer2828
Jennifer2828 is offline
#1
Feb23-10, 09:12 PM
P: 1
I'm trying to use the quad function to evaluate the integral of the magnitude of y'(x) where
y(x)= (-3cos(t), -2sin(t), t) from 0 to 2pi.

Code so far:
v = [-3*sin(t), -2*cos(t), 1];
j=norm(v)
F = @(t)norm(v)
ANS1 = quad(F,0,2*pi)

Error:
??? Index exceeds matrix dimensions.

Error in ==> quad at 85
if ~isfinite(y(7))

Thanks so much for any help!!!!
Phys.Org News Partner Science news on Phys.org
SensaBubble: It's a bubble, but not as we know it (w/ video)
The hemihelix: Scientists discover a new shape using rubber bands (w/ video)
Microbes provide insights into evolution of human language

Register to reply

Related Discussions
Calculating FT using matlab quad function General Math 1
Matlab: Urgent!!!! Math & Science Software 1
URGENT variable name matlab help Math & Science Software 4
MATLAB quad function Math & Science Software 1