필터 지우기
필터 지우기

"matrix dimesion must agree" error (simple equation)

조회 수: 1 (최근 30일)
Ahmet Oguz
Ahmet Oguz 2017년 3월 19일
답변: Muhammad Abdurrehman 2017년 3월 19일
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?

답변 (1개)

Abdurrehman
Abdurrehman 2017년 3월 19일
Instead of / You should use ./ for matrix division

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by