Register to reply

Matlab quad help - !

by Jennifer2828
Tags: matlab, quad
Share this thread:
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
Bees able to spot which flowers offer best rewards before landing
Classic Lewis Carroll character inspires new ecological model
When cooperation counts: Researchers find sperm benefit from grouping together in mice

Register to reply

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