what is meant by 'Cell contents reference from a non-cell array object'.
18 views (last 30 days)
Show older comments
I am going to write a matlab code for pde but it give above error.
0 Comments
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
See Also
Categories
Find more on Boundary Conditions 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!