find something strange when using rot90. the matrix are not equal nor equal. In this case 33 appears in the answer.
显示 更早的评论
采纳的回答
更多回答(1 个)
Dishant Arora
2014-3-11
A and B are matrices not scalar compare them using isequal. Try this
if isequal(A,B)
% do something
elseif ~isequal(A,B)
% do something
And to know what you did wrong in your code type this:
A==B
类别
在 帮助中心 和 File Exchange 中查找有关 Entering Commands 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!