Results 1 to 2 of 2

Math Help - Matlab Help

  1. #1
    Newbie
    Joined
    Apr 2010
    Posts
    1

    Matlab Help

    Does anyone know what is wrong with this line of code?

    V = [ones(155,1) [1:155]']

    I',m trying to do a least squares fit and I have loaded my data a matrix of size 155 by 2, and when I type in this line it keeps telling me the dimensions are wrong and that I used horzcat incorrectly? Can anyone help?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by secsl714 View Post
    Does anyone know what is wrong with this line of code?

    V = [ones(155,1) [1:155]']

    I',m trying to do a least squares fit and I have loaded my data a matrix of size 155 by 2, and when I type in this line it keeps telling me the dimensions are wrong and that I used horzcat incorrectly? Can anyone help?
    works for me.

    CB
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Matlab help
    Posted in the Math Software Forum
    Replies: 1
    Last Post: February 11th 2010, 03:59 AM
  2. Matlab FFT Help
    Posted in the Math Software Forum
    Replies: 0
    Last Post: June 3rd 2009, 01:48 PM
  3. help about ODE in matlab
    Posted in the Math Software Forum
    Replies: 1
    Last Post: May 31st 2009, 04:10 AM
  4. Matlab
    Posted in the Math Software Forum
    Replies: 0
    Last Post: November 6th 2008, 09:46 AM
  5. Matlab
    Posted in the Calculus Forum
    Replies: 3
    Last Post: August 20th 2008, 11:39 PM

Search Tags


/mathhelpforum @mathhelpforum