Re: Cell Array



David Shin wrote:
>
>
> Hi,
>
> I have a 100x1 cell array, each cell containing an array of
> different
> length. How do I delete a specific row of the cell array and move
> up
> the remaining rows? For example, if I want to delete the array
> residing in 10th row of the cell array and shrink the cell array to
> 99x1, how would you do that? Thanks for your feedback. In a
> nutshell,
> I want to treat this 100x1 cell more like an Excel spread ***
> which
> allows you to delete a row and move up all the rows below.
>
> DS

% sample data
A{1} = 1:10 ; A{2} = 1:3 ; A{3} = 1:6
% delete row 2, note the smooth instead of curly braces!
A(2) = []

hth
Jos
.


Quantcast