HI, is there any built in function in MATLAB to check, if all the elements in cell array or double array are same or not
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
raghavendra kandukuri
am 14 Mai 2019
Kommentiert: raghavendra kandukuri
am 14 Mai 2019
Is there any built in function in MATLAB to check, if all the elements in cell array or double array are same or not, for example, if same then do some calculations else do something else
fck1 = {3,3,3,3,3}
% return 1 or 0 for uniqueness
if fck1% unique
%calculation
else
%calculations
end
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!