being equals of 2 matrics

1 Ansicht (letzte 30 Tage)
som
som am 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

Akzeptierte Antwort

Daniel Shub
Daniel Shub am 1 Nov. 2011
a = rand(2)
b = rand(2)
isequal(a,a)
isequal(b,b)
isequal(a,b)
  1 Kommentar
som
som am 1 Nov. 2011
thank you in advance

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB Coder finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by