How can I convert a .mat file into a .txt file with all the headers? I do not know how many fields are present.
How do I export this data? I have MATLAB.
I tried in MATLAB:
load('test_data.mat'); save('test_data.txt', '-ascii');
It did not work.
migrated from stackoverflow.com Jul 14 '10 at 21:07
This question came from our site for professional and enthusiast programmers.
If you are using MATLAB you can simply execute the command
which will load all the variables in the .mat file into your workspace. You can then do something like:
to save the variables you specify into an ASCII file. The
And if you are not using MATLAB your question doesn't make much sense to me.