being equals of 2 matrics

1 次查看(过去 30 天)
som
som 2011-11-1
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

采纳的回答

Daniel Shub
Daniel Shub 2011-11-1
a = rand(2)
b = rand(2)
isequal(a,a)
isequal(b,b)
isequal(a,b)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Coder 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by