Re: Cell Array
- From: Jos <x@xxx>
- Date: Wed, 31 Aug 2005 05:50:29 -0400
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
.
- References:
- Cell Array
- From: David Shin
- Cell Array
- Prev by Date: Re: how to solve Sturm liouville problem(F''(x)+3/8*(1-x*x)*lam^2*F(x)=0, b.c=F'(0)=0,F(1)=0
- Next by Date: How i can plot points coordinates?
- Previous by thread: Re: Cell Array
- Next by thread: GUI adjusting with GUIDE
- Index(es):