help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Access first element of cell array


From: Windhorn, Allen E [ACIM/LSA/MKT]
Subject: RE: Access first element of cell array
Date: Wed, 18 Jul 2018 13:36:06 +0000

> -----Original Message-----
> From: Help-octave [mailto:help-octave-
> address@hidden On Behalf Of LucaLuca
> 
> A{1}=[2 4];
> A{2}=[4 6 7];
> 
> it's possible to access the first element ?

Of what?  The first element of A is [2,4].

>> A{1}
ans =

   2   4

This is an array of numbers.

The first element of the first element of A is 2.

>> A{1}(1)
ans =  2

This is a number.

Regards,
Allen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]