Register to reply

Matlab quad help - !

by Jennifer2828
Tags: matlab, quad
Share this thread:
Jennifer2828
#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
New type of solar concentrator desn't block the view
Researchers demonstrate ultra low-field nuclear magnetic resonance using Earth's magnetic field
Asian inventions dominate energy storage systems

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