being equals of 2 matrics

1 view (last 30 days)
som
som on 1 Nov 2011
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

Daniel Shub
Daniel Shub on 1 Nov 2011
a = rand(2)
b = rand(2)
isequal(a,a)
isequal(b,b)
isequal(a,b)

More Answers (0)

Categories

Find more on MATLAB Coder in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!