[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Assigning matrices to structures and indexing
From: |
SITI HAJAR A BAKAR |
Subject: |
Assigning matrices to structures and indexing |
Date: |
Fri, 27 May 2005 15:42:32 +1000 |
Hi all,
Can someone direct me to some documentation on structured in OCtave
other than in the manual. I'm having trouble implementing the following
lines in Octave 2.1.70 in Windows). They work in MATLAB .
for k=1:nu
for m=1:ny
[G.B(k,:,m),G.A(k,:,m)] = ss2tf(G.ss.A,G.ss.B,G.ss.C(m,:),G.ss.D
(m,:),k);
end;
end;
It doesnt accept that I'm trying to assign non scalar values to the
structure. I get the following message.
A(IDX-LIST) = X: X must be scalar or size of X must equal number of
elements. I would appreciate any tips, and even better a good
reference on structures. Thanks heaps!
Regards,
HAjar
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- Assigning matrices to structures and indexing,
SITI HAJAR A BAKAR <=