Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

??? Cell contents reference from a non-cell array object.

조회 수: 1 (최근 30일)
med-sweng
med-sweng 2013년 3월 20일
마감: MATLAB Answer Bot 2021년 8월 20일
At the following line of code:
p(ismember([four_neighbourhood_cell_array{:}],[C.(sprintf('C%d',k)){:}]) == 1) = membershipMatrix(four_neighbourhood_pixels == 1);
I get the error:
??? Cell contents reference from a non-cell array object.
What does that mean? The reason I used `cell arrays` is that I got an error that `four_neighbourhood_cell_array` & `C.(sprintf('C%d',k))` are not of the same dimension. But, now getting the error you see above.
What can I do to work around this issue?
Thanks.

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 3월 20일
편집: Azzi Abdelmalek 2013년 3월 20일
If y is your cell array causing the error, add at the beginning of your code
clear y
in your case
clear four_neighbourhood_cell_array

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by