i need help with MATLAB?

I need help with matlab. I keep getting "error matrix must be a square". It can get corrected when i change for example x^2 to x.^2. The program will work fine, but I am writing long program and I want that automatically done. How will I go about that?

2 Answers

  • 1 decade ago
    Favorite Answer

    It's not telling you to square the matrix, it's telling you that the matrix must be square. In other words, it must have the same number of rows and columns.

    By the way, I hope that you know that x^2 is VERY different from x.^2. The first performs a matrix multiplication. The second squares each element of the matrix.

  • 1 decade ago

    well to tell you the truth i dont really get the whole problme but you can emal=il me and ill try and solve wht the **** evr that is

    love, lilb

Still have questions? Get your answers by asking now.