Re: Cell Array
- From: Peter Boettcher <boettcher@xxxxxxxxxx>
- Date: Mon, 31 Oct 2005 13:49:11 -0500
"Shapper" <mdmoura*NOSPAM*@gmail.*DELETE2SEND*com> writes:
> Hello,
>
> I am creating a cell array in two different ways:
> C_1 = {1,1,1,1;1,1,1,1;1,1,1,1;1,1,1,1}
>
> And
>
> A=1
> B=repmat(A, 4, 4);
> C_2={B}
>
> When I write C_1 I see the cell elements and when I write C_2 I see [4x4
> double]. Why? Is there any difference the way I create both cells.
C_1 is a 4x4 cell array, where each element is a 1x1 matrix = 1.
C_2 is a 1x1 cell array, where the single element is a 4x4 matrix.
--
Peter Boettcher <boettcher@xxxxxxxxxx>
MIT Lincoln Laboratory
MATLAB FAQ: http://www.mit.edu/~pwb/cssm/
.
- References:
- Re: Cell Array
- From: Shapper
- Re: Cell Array
- Prev by Date: Re: Variance of a Plot
- Previous by thread: Re: Cell Array
- Next by thread: Re: Getting X-coordinates from arbitrary Y-values
- Index(es):
Relevant Pages
|