Hi,
I'm using Octave in c++ code. I'm writing code that will return character/string matrix. The code is-
octave_value_list out = feval (pstData[0], in, 1);
dim_vector d = (out(0).matrix_value().dims());
if(out(0).is_char_matrix())
{
pchar_op= (char**)malloc(sizeof(char*) * d(0) * d(1));
pchar_op[l+d(0)*m]=out(0).char_matrix_value ();
}
I have doubts with Octave character matrix.
Is out(0).char_matrix_value ()
the right way to handle a string matrix?
How do I access each element of this matrix?
Regards,
Shamika