help-octave
[Top][All Lists]
Advanced

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

Error with Cell element access


From: Justin Bare
Subject: Error with Cell element access
Date: Thu, 13 Aug 2009 10:53:32 -0400 (EDT)
User-agent: SquirrelMail/1.4.8-4.fc5

I get the error "conversion from ‘int’ to non-scalar type ‘dim_vector’
requested" on the line that says "cell_data(v) = var;" in the following
code. I have included the octave library and Cell.h.

    Cell cell_data(dim_vector(numVars));


    for(int v = 0; v < numVars; v++){
      int dataLength = myData.arrayVars[names[v]][0].size();

      NDArray var = NDArray(dim_vector(numTimeSteps, dataLength));
      for (int t = 0; t < numTimeSteps; t++){
        for(int i = 0; i < dataLength; i++){
          var(t, i) = myData.arrayVars[names[v]][t][i];

        }
      }
      cell_data(v) = var;
    }


Any ideas?
-- 

Justin Bare
Robotic Research, LLC.
814 West Diamond Ave, Suite 301
Gaithersburg, MD 20878
240-631-0008 Ext 246


reply via email to

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