User Activity

  • Posted a comment on discussion Help on MAT File I/O Library

    Thanks for your quick reply. I tried both approaches and i can get the results which i need :)

  • Posted a comment on discussion Help on MAT File I/O Library

    Thank you for your answer, but it's not working for me and can't figure it out where is the problem :( int main(int argc, char* argv[]) { double out2[3]; out2[0] = 500.0; out2[1] = 100.0; out2[2] = 100.0; mat_t *mat; matvar_t *matoutvar1; matvar_t *matvar_val; mat = Mat_Open("output.mat", MAT_ACC_RDWR); size_t dims[1]; Mat_GetDir(mat, dims); cout << dims[0] << endl; string *variable_temp = new string[dims[0]]; const char* p_c_str; int j = 0; // Here I'm reading the variable names in the matoutput...

  • Posted a comment on discussion Help on MAT File I/O Library

    Dear all, i've just started using this library. I'm working on a problem, where i need to update values of a variable in an existing mat file. I tried the following approach to mke it work, may be anyone knows a better way to do it: The approach i took involves the following step: Open input.mat file matoutput = Mat_Open(" input.mat", MAT_ACC_RDWR); Read input.mat file matoutvar1 = Mat_VarReadNextInfo(matoutput); matoutvar_val = Mat_VarRead(matoutput, matoutvar1->name); Store the variables and other...

View All

Personal Data

Username:
mexfiles
Joined:
2011-05-11 06:47:29

Projects

  • No projects to display.

Personal Tools