being equals of 2 matrics

Hi all
i want to compare two matrices if they are equal or not. but I dont want to use two for-loop. could you please guide me???
thanks

 Accepted Answer

a = rand(2)
b = rand(2)
isequal(a,a)
isequal(b,b)
isequal(a,b)

More Answers (0)

Categories

Tags

Community Treasure Hunt

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

Start Hunting!