Results 1 to 2 of 2

Math Help - Matlab - scalar / vector help please

  1. #1
    Newbie
    Joined
    Sep 2013
    From
    England
    Posts
    4

    Matlab - scalar / vector help please

    Hi, I have a code in matlab where I have a function, f, defined in terms of x (x has so far not been used in the program). However, matlab thinks that x is a vector (1 x 7 double - 0 inf inf inf nan nan inf). How can I fix this to just have x as a scalar variable in the function? Thanks for any help
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Super Member Rebesques's Avatar
    Joined
    Jul 2005
    From
    At my house.
    Posts
    542
    Thanks
    11

    Re: Matlab - scalar / vector help please

    clear x;

    before the function might help.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. vector & scalar projections
    Posted in the Advanced Algebra Forum
    Replies: 1
    Last Post: March 7th 2010, 05:37 AM
  2. Scalar/Vector problems
    Posted in the Geometry Forum
    Replies: 2
    Last Post: February 21st 2010, 06:51 AM
  3. Scalar and vector fields
    Posted in the Advanced Applied Math Forum
    Replies: 2
    Last Post: December 2nd 2009, 02:47 AM
  4. Scalar, Vector, Meaningless
    Posted in the Calculus Forum
    Replies: 1
    Last Post: September 1st 2009, 02:18 PM
  5. Vector / Scalar Projection
    Posted in the Geometry Forum
    Replies: 10
    Last Post: April 4th 2009, 03:47 PM

Search Tags


/mathhelpforum @mathhelpforum