Error using - Matrix dimensions must agree.

3 ビュー (過去 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 Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by