English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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?

2007-11-29 02:31:09 · 2 answers · asked by electric 3 in Science & Mathematics Engineering

2 answers

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.

2007-11-29 03:00:10 · answer #1 · answered by dogsafire 7 · 1 0

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

2007-11-29 02:40:22 · answer #2 · answered by lil b 1 · 1 1

fedest.com, questions and answers