[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:
Say:
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
line?
JokerOne
--
View this message in context:
http://octave.1599824.n4.nabble.com/cs-list-general-question-tp4666260.html
Sent from the Octave - General mailing list archive at Nabble.com.
- cs-list general question,
JokerOne <=