MATLAB Answers

1

"matrix dimesion must agree" error (simple equation)

Asked by Ahmet Oguz on 19 Mar 2017
Latest activity Answered by Muhammad Abdurrehman on 19 Mar 2017
When i try to run this i got an error like "Error using / Matrix dimensions must agree.
Error in Untitled2 (line 2)
M=3/s"
s=0.01:0.01:0.99;
M=3/s
plot(M,s)
end
Why am i getting this error?

  0 Comments

Sign in to comment.

1 Answer

Answer by Abdurrehman on 19 Mar 2017

Instead of / You should use ./ for matrix division

  0 Comments

Sign in to comment.