Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Error in Octave

  1. Feb 22, 2009 #1
    When I generate a list x = (-10:0.1:10)

    and want to evaluate it using a function

    exp(x) * sin(x)

    I get this error

    wondering what's the problem here?
     
  2. jcsd
  3. Feb 23, 2009 #2

    Dr Transport

    User Avatar
    Science Advisor
    Gold Member

    try exp(x).*sin(x) which is a matrix element by element multiply which should give you a 1 x 101 matrix.
     
  4. Feb 23, 2009 #3
    Thanks in worked. Didn't know you had to use .* operator.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Error in Octave
  1. Octave/ Matlab (Replies: 2)

  2. Help with Octave (Replies: 3)

  3. Octave on Fedora (Replies: 2)

  4. Bug in Octave? (Replies: 1)

Loading...