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

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -