[Top][All Lists]

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

cs-list general question

From: JokerOne
Subject: cs-list general question
Date: Thu, 28 Aug 2014 09:08:35 -0700 (PDT)

Hi all, and sorry, this question has probably posted 100 times but I cannot
find anything proper by searching:

a(1).b(1).c = 1;
a(2).b(1).c = 2;
a(1).b(2).c = -1;

How do I get [1,2] in a vector from this structure?
i.e. something like:
result = a(:).b(1).c  

but this does not work? (error a cs-list cannot be....)

A loop will do, of course, but I am pretty sure, that you can do it in one

View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

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