help-octave
[Top][All Lists]
Advanced

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

Re: Counting entries in cs-lists


From: Carlo De Falco
Subject: Re: Counting entries in cs-lists
Date: Wed, 22 Apr 2015 10:52:49 +0000

On 22 Apr 2015, at 12:09, JokerOne <address@hidden> wrote:

> Hi community,
> 
> 
> again, I am asking for your help regarding a cs-list issue:
> 
> Is there a one-line solution to count the entries of a cs-list, e.g.
> 
>>>> a(1).b.c = [1;2];
>>>> a(2).b.c = [3;4;5];
> 
> Now:
> desired_function_or_line(a.b.c) 
> is suppose to yield : 
> 5
> 
> ? 
> 
> A loop will do of course. But I would like to check first, if there is
> anything already provided by Octave.
> 
> Thanks for your help.

I'm not really sure what you are trying to do, but a.b.c is not a cs-list.
actually a.b is already a cs-list which you cannot index any further, so a.b.c 
is a syntax error.

c.







reply via email to

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