what is meant by 'Cell contents reference from a non-cell array object'.
Mostrar comentarios más antiguos
I am going to write a matlab code for pde but it give above error.
Respuestas (1)
James Tursa
el 22 de Mzo. de 2017
Editada: James Tursa
el 22 de Mzo. de 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 comentario
Mira le
el 19 de Nov. de 2019
How to check y contain in X, ? y and X are cell
Categorías
Más información sobre Cell Arrays en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!