Converting *.m files from 2004 version to a newer version
조회 수: 2 (최근 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
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
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
댓글 수: 1
Walter Roberson
2012년 9월 16일
Ah, case sensitivity perhaps? If so then try using the -mat option when loading.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Search Path에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!