help-octave
[Top][All Lists]
Advanced

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

Counting entries in cs-lists


From: JokerOne
Subject: Counting entries in cs-lists
Date: Wed, 22 Apr 2015 03:09:26 -0700 (PDT)

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.





--
View this message in context: 
http://octave.1599824.n4.nabble.com/Counting-entries-in-cs-lists-tp4670010.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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