what is meant by 'Cell contents reference from a non-cell array object'.
Show older comments
I am going to write a matlab code for pde but it give above error.
Answers (1)
James Tursa
on 22 Mar 2017
Edited: James Tursa
on 22 Mar 2017
It means you used the curly braces { } on a variable that was not a cell array. E.g.
>> x = {5} % <-- a 1x1 cell array, the first element is a double scalar
x =
[5]
>> y = 5 % <-- a double scalar
y =
5
>> x{1} % <-- the contents of the first element of the cell array x
ans =
5
>> y{1} % <-- oops ... y is not a cell array so the { } generates an error
??? Cell contents reference from a non-cell array object.
1 Comment
Mira le
on 19 Nov 2019
How to check y contain in X, ? y and X are cell
Categories
Find more on Cell Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!