GithubHelp home page GithubHelp logo

Comments (6)

tbeu avatar tbeu commented on September 1, 2024

Please use Mat_Create or Mat_CreateVer instead of Mat_Open if the file does not exist.

from matio.

rbnvrw avatar rbnvrw commented on September 1, 2024

Thanks for your quick answer. I changed the code like this:

mat = Mat_Create(filename, NULL);

I get the following error message: Process finished with exit code 139 (interrupted by signal 11: SIGSEGV). The data.mat file of 0 bytes is created.

Another question: do you have online documentation available?

from matio.

rbnvrw avatar rbnvrw commented on September 1, 2024

After debugging, I found the answer myself:
matvar = Mat_VarCreate("diffusion_trajectories", MAT_C_DOUBLE, MAT_T_DOUBLE, 3, dims, &trajectories->at(0), 0);

Thanks for your help!

from matio.

tbeu avatar tbeu commented on September 1, 2024

Sure, up-to-date documentation is available from bitbucket.org.

from matio.

tbeu avatar tbeu commented on September 1, 2024

Data type of dims should be size_t* (not unsigned long*). This likely is the reason for the segmentation violation (as also observed at https://sourceforge.net/p/matio/discussion/609377/thread/e7afc89e).

from matio.

tbeu avatar tbeu commented on September 1, 2024

Cross post: http://stackoverflow.com/questions/40105475/mat-open-is-not-working-while-using-matio-in-c

from matio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.