what is meant by 'Cell contents reference from a non-cell array object'.

Respuestas (1)

James Tursa
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.

Categorías

Etiquetas

Preguntada:

el 22 de Mzo. de 2017

Comentada:

el 19 de Nov. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by