matlab - Delete cells from cell array without replacing that by NULL -
this question has answer here:
- delete cell array column 3 answers
i have cell contains cells, want delete specific cell cell array 'delete' function getting error "argument must contain string". example have cell a= { ['a'] ['b'] ['c'] [1 2 3]} want delete 3rd value of a(3)='c' such new cell after deleting a(3) a={ ['a'] ['b'] [1 2 3]}, means there should not null value @ place of deleted value a={['a'] ['b'] [] [1 2 3]} . please solve problem.
use parenthesis instead of braces:
a(1) = [];
Comments
Post a Comment