필터 지우기
필터 지우기

Error using - Matrix dimensions must agree.

조회 수: 2 (최근 30일)
MAT NIZAM UTI
MAT NIZAM UTI 2021년 12월 9일
답변: Shravan Kumar Vankaramoni 2021년 12월 15일
z=(z - MIN)./(MAX - MIN);
When I run this code, there will always error
Error using -
Matrix dimensions must agree.
  댓글 수: 1
KSSV
KSSV 2021년 12월 9일
Check the dimensions of each variable...they should be compatible for substraction and element by division.

댓글을 달려면 로그인하십시오.

답변 (1개)

Shravan Kumar Vankaramoni
Shravan Kumar Vankaramoni 2021년 12월 15일
Hi,
There is a mismatch in the matrix dimensions you are using in that equation.
Refere the below links to understand on that:
Hope this helps.

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by