Matlab quad help - urgent!

by Jennifer2828
Tags: matlab, quad
Jennifer2828 is offline
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];
F = @(t)norm(v)
ANS1 = quad(F,0,2*pi)

??? 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
Better thermal-imaging lens from waste sulfur
Hackathon team's GoogolPlex gives Siri extra powers
Bright points in Sun's atmosphere mark patterns deep in its interior

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