Error while converting a .mat file into ascii using Mat2Ascii function

Hello, I would like to read a .mat file. I used Load it generate an error 'File might be corrupt.', so I though about using Mat2ascii function but unfortunatelly I have this error 'Mat2Ascii.p was generated prior to MATLAB version 7.5 (R2007b) and is no longer supported.'. Anyone can help me read or extract the data from the .mat !! (knowing that I have tried textscan, load, importdata but no good results were obtained). Thank you!

回答 (3 件)

Ano
Ano 2016 年 11 月 7 日

0 投票

I don't want to extract information from this file only, the purpose is to be able to extract information from .mat files each time Matlab receives this type of files. Any suggestions ?!

1 件のコメント

Walter Roberson
Walter Roberson 2016 年 11 月 7 日
A representative .mat file would help me figure out which .mat file format you are dealing with, and the kind of corruption that has happened.
For example, there is no way to recover a .mat file if you have saved your Bingo score sheets on top of them, so addressing the general task of being able to recover any and all corrupt .mat files is futile.

サインインしてコメントする。

Ano
Ano 2016 年 11 月 7 日

0 投票

Thank you very much! unfortunately I have the same error with the new generated file. Here I attach the file, I Hope to get helped on this issue.

6 件のコメント

Walter Roberson
Walter Roberson 2016 年 11 月 7 日
That is a Version 4 (or earlier) .MAT file.
Was the file created with Octave? Or is it just really really old?
Ano
Ano 2016 年 11 月 7 日
this is a file generated by FEKO, it supposed to be impedance matrix but I am unable to open it, what shall I do ?!
Walter Roberson
Walter Roberson 2016 年 11 月 7 日
Reading through the documentation from http://www.eiscat.com/groups/Documentation/UserGuides/matlab4.pdf and using some dump tools, I can see that the file is not a valid version 4 .MAT file.
At the very least it would have to be missing the first 4 bytes of header, indicating the byte order and some other information. The variable name is aligned starting at byte 16, but in .MAT files up to version 4, the variable name needs to be at byte 20. The length of the name including trailing NUL byte needs to be stored just before the name, but the length stored there is 32, and the variable name is 32 characters plus the NUL byte for a total of 33.
Is it possible that what we are looking at is a FEKO .ffe file?
Ano
Ano 2016 年 11 月 7 日
Thank you for your replies. I couldn't open the first link that you have provided. for the file it is .mat and I am not generating any .ffe files for the moment
Walter Roberson
Walter Roberson 2016 年 11 月 7 日
It appears that the variable name is too long to be valid for the -v file type -- it is showing up in the file as 3B1952DF82A67996105A1A89FD86150A which longer than the 19 permitted. Also it appears to start with a digit, which would not be valid.
It might be possible to extract some information from the file, but it is certainly not a valid .mat file.
Ano
Ano 2016 年 11 月 7 日
Thank you very much for your help. Maybe I should change the question into how to export the impedance matrix from Feko into Matlab..

サインインしてコメントする。

カテゴリ

質問済み:

Ano
2016 年 11 月 4 日

コメント済み:

Ano
2016 年 11 月 7 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by