[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: array of strings?
From: |
MrOba |
Subject: |
Re: array of strings? |
Date: |
Fri, 13 Sep 2013 00:19:49 -0700 (PDT) |
Mike Miller-2 wrote
> Maybe you should restate the original problem you are having with
> sq_string (the invalid conversion error) instead of trying to figure
> out how to coerce your data into a double-quoted string type.
Thanks for the answers.. You are right, I did a bit of a mess here.
What I am trying to do is to save a variable (a matrix) from Octave in
binary format. Then in my C++ code I would like to load the same variable
from binary format and store it as a mxArray I will use in the code.
For the load part I do as explained here: http://wiki.octave.org/Octave_load
I have no problems with a numeric matrix. I can save and load my data as
mxArray.
When I try with an array of string, if I create the matrix like matrix "a"
in my previous post (# type: string and NOT dq_string ) I can still save and
load the binary data.
When the matrix is of a different type (dq_string or sq_string) I still can
save the data, but I cannot load it in my C++ code ( k.contents
(varName).matrix_value() results in an error: invalid conversion from
string to real matrix).
I hope this clarify a bit.
MrO
--
View this message in context:
http://octave.1599824.n4.nabble.com/array-of-strings-tp4656994p4657297.html
Sent from the Octave - General mailing list archive at Nabble.com.
- Re: array of strings?, (continued)
- Re: array of strings?, MrOba, 2013/09/03
- Re: array of strings?, Nicholas Jankowski, 2013/09/03
- Re: array of strings?, MrOba, 2013/09/03
- Re: array of strings?, MrOba, 2013/09/05
- Re: array of strings?, MrOba, 2013/09/12
- Re: array of strings?, JasonNicholson, 2013/09/12
- Re: array of strings?, MrOba, 2013/09/12
- Re: array of strings?, Mike Miller, 2013/09/12
- Re: array of strings?, Nicholas Jankowski, 2013/09/12
- Re: array of strings?, Nicholas Jankowski, 2013/09/12
- Re: array of strings?,
MrOba <=
- Re: array of strings?, Mike Miller, 2013/09/13
- Re: array of strings?, MrOba, 2013/09/13
- Re: array of strings?, MrOba, 2013/09/18
- Re: array of strings?, MrOba, 2013/09/18
- Re: array of strings?, Mike Miller, 2013/09/18
- Re: array of strings?, MrOba, 2013/09/19
- Re: array of strings?, Mike Miller, 2013/09/19
- Re: array of strings?, MrOba, 2013/09/19