Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
I am trying to add a cell value to a number but i got this error. Cell contents reference from a non-cell array object.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
the instruction is:
vect{cell,1}{1,1}=sum(vect{cell,1}{1,1})+occ_d;
0 comentarios
Respuestas (1)
Walter Roberson
el 2 de Nov. de 2015
No, that code is going to give you the error
Error using cell
Not enough input arguments.
You need to pass at least one parameter to cell() such as
vect{cell(3,7),1}{1,1}=sum(vect{cell(3,7),1}{1,1})+occ_d;
This in turn would lead you to an error about trying to use a cell array as an index, but at least you would be past the initial error.
1 comentario
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!