Matlab quad help - !

  1. Matlab quad help - urgent!

    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!!!!
  2. jcsd
Know someone interested in this topic? Share a link to this question via email, Google+, Twitter, or Facebook

Have something to add?

Draft saved Draft deleted