Matrix Size in Matlab

104 views Asked by At

I have two curves with sizes:

size(A) = 1 312 and size(B) = 312 

When subtsracting A from B, I got this error message

Error using ==> minus Matrix dimensions must agree.

Can this error be attributed to the order of the matrices where the values of A = 1 312 and that of B = 312 1?

1

There are 1 answers

0
user2816823 On

Those matrices are not the same dimensions, try subtracting A' from B (A transpose).