-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mat_Open is not working while using matio in C++ #45
Comments
Please use Mat_Create or Mat_CreateVer instead of Mat_Open if the file does not exist. |
Thanks for your quick answer. I changed the code like this:
I get the following error message: Another question: do you have online documentation available? |
After debugging, I found the answer myself: Thanks for your help! |
Sure, up-to-date documentation is available from bitbucket.org. |
Data type of dims should be |
I am using the matio library to write the contents of a
std::vector<std::vector<std::vector<double>>>
and some other data to a MatLab file. I used a tutorial here: http://na-wiki.csc.kth.se/mediawiki/index.php/MatIOHowever,
Mat_Open
staysNULL
, meaning I can't write anything to the file. There are no error messages, linking/compilation is fine,Saving mat file
is never printed and the exit code of the program is0
. Am I missing something obvious?Contents of the function that should create the MatLab file:
I include the library using
#include <matio.h>
, and link it with-std=c++11 -L/usr/lib -lmatio -lz
. Any help is appreciated.The text was updated successfully, but these errors were encountered: