[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
string matrices in .oct files
From: |
John W. Eaton |
Subject: |
string matrices in .oct files |
Date: |
Thu, 25 Sep 1997 15:41:55 -0500 |
On 25-Sep-1997, A. Scottedward Hodel <address@hidden> wrote:
| I'm translating the octave controls toolbox to .oct files for faster
| handling of the data structure.
|
| What data type should be used for string matrices; for example, state
| names are stored in a matrix
|
| sys.stname = ["x_1";"x_2"], etc.
|
| I'm using charMatrix, but that appears to be the wrong data type.
You probably want to use string_vector instead. You can extract a
string_vector object from an octave_value object using all_strings(),
and there is a constructor for octave_values that takes a
string_vector as an argument.
jwe