Converting *.m files from 2004 version to a newer version

3 次查看(过去 30 天)
Hello everyone I'm trying to run a code which use a *.m file created from a program (Not matlab) but the problem is that is version is 2004. I can not create the file in another format so I want to ask if someone knows how to convert a file from the 2004 version to an earlier version?.
PD: When I was using Matlab for Windows it could open it even with the version been 2004 and my Matlab been 2012. But now that I use Ubuntu, my matlab crashes leaving me the next error message: " Error using load Number of columns on line 3 of ASCII file /home/camo/Documentos/Universidades/Unal/Thesis/Tests/data_1.MAT must be the same as previous lines. "
Thank you very much for your help
  1 个评论
Walter Roberson
Walter Roberson 2012-9-16
Is it a .m file or a .mat file? Is the file ascii or binary? The message indicates that load() thinks it is not a binary .mat file.

请先登录,再进行评论。

采纳的回答

Titus Edelhofer
Titus Edelhofer 2012-9-16
Hi,
the error message indicates, that MATLAB assumes the file to be ascii (i.e., tries to load as ascii file). But the ".MAT" looks as if it is a binary .mat file. So now comes a wild guess: MATLAB assumes the .MAT to be ascii, because it's not the .mat it should be. Try to rename as .mat and try to load it again.
If this doesn't help, you might open the file with an editor and follow Walter's comment and give us the info ...
Titus

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Search Path 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by