2

How to read data store in a .Mat file and convert it to any other format such as .txt or .plist with a C language project?

If there is already an opensource project that does it, please tell me.

Thanks in advice.

Mecki
  • 125,244
  • 33
  • 244
  • 253
Karl TinKode
  • 79
  • 2
  • 10
  • What is the format of the mat file? If you open it up in a text edit, how is the data formatted? – KrisSodroski Jul 31 '13 at 14:45
  • 2
    I'm not going to flag this question, but in general, asking for a library recommendation is not suited for SO. – Drew McGowen Jul 31 '13 at 14:47
  • Don't you think it would have been very helpful to mention that *.mat* files are *MATLAB* files in your question? Or do you really believe that this is a well known fact to everyone on SO? Also adding a MATLAB tag wouldn't have been such a bad idea, wouldn't it? Especially if such a tag already exists, and it does (fixed that for you). – Mecki Jul 31 '13 at 15:04
  • hey dont take it with me, and this rep system in my point of view sukcs (<--- did that intentionally). I have just a question, there may be bad questions, but when someone ask a question , he asks because he don't know the answer to it, so to whoever know it , may seems as a stupid question. And yes i dont know all possible tags.. -.- – Karl TinKode Jul 31 '13 at 17:06
  • like each time a person makes his question, what he actually gets is the dose of critics and observation on how he did the question. I think i must bare with it. Thats the nature of ppl nowadays – Karl TinKode Jul 31 '13 at 17:11

1 Answers1

3

it is doable, see the spec here: http://www.mathworks.de/de/help/matlab/matlab_external/custom-applications-to-read-and-write-mat-files.html?s_tid=doc_12b

in python it is all neatly wrapped up in scipy, see Read .mat files in Python

Community
  • 1
  • 1
mnagel
  • 6,729
  • 4
  • 31
  • 66