equality between different number of variables problem
2 次查看(过去 30 天)
显示 更早的评论
I have a cell array and the size is changing. but I want to know wether all the cells are equal.
Yes, if the size of the cell are determined, I could use 'isequal' function, but in my situation they are not determined, sometimes 3, sometimes 5, sometimes even 100. I could write a for-loop to identify them one by one. but I want know, is there any easier way to do this?
Bests
Yu
0 个评论
采纳的回答
Stephen23
2019-3-13
Where C is your cell array:
isequal(C{:})
Learn how this works by reading the isequal documentation, and these:
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!