help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Octave string Matrix


From: Shamika Mohanan
Subject: Octave string Matrix
Date: Thu, 6 Aug 2015 11:26:34 +0530

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]