matlab - Delete cells from cell array without replacing that by NULL -


this question has answer here:

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

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -