Error using - Matrix dimensions must agree.
3 views (last 30 days)
Show older comments
z=(z - MIN)./(MAX - MIN);
When I run this code, there will always error
Error using -
Matrix dimensions must agree.
1 Comment
KSSV
on 9 Dec 2021
Check the dimensions of each variable...they should be compatible for substraction and element by division.
Answers (1)
Shravan Kumar Vankaramoni
on 15 Dec 2021
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.
0 Comments
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!