[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to make matrices of structs
From: |
Mads Lindstrøm |
Subject: |
How to make matrices of structs |
Date: |
Sun, 29 Aug 2004 10:43:18 +0200 |
Hi
I am trying to make a matrix of structs. I am doing it like I would do
it in Matlab:
> A.x=5; B.x=7; C=[A,B];
and it does not work. I get the following error:
> error: can't resize to negative dimension
> error: octave_base_value::matrix_value(): wrong type
> argument `struct'
> error: evaluating assignment expression near line 1,
> column 16
How do I make a matrix of structs in Octave?
I am running Octave version 2.1.40 (i386-redhat-linux-gnu) on Redhat
Linux.
Greetings,
Mads Lindstrøm
-------------------------------------------------------------
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
-------------------------------------------------------------
- How to make matrices of structs,
Mads Lindstrøm <=