equality between different number of variables problem
조회 수: 1 (최근 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개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!