Wednesday 26 August 2009

matlab7(R14) load/save mat file的一个bug

对于某些save的mat file, 用load无法打开


提示:???Error using ==> load
Unable to read MAT file /home/$dir
File may be corrupt.


解决方法在这里:http://www.mathworks.com/support/solutions/data/1-12L88C.html?solution=1-12L88C


需要下载 matzerofix.m 和 matcat.m


good = matcat(yourmatfile.mat) 如果good = 0 就说明mat file是 corrupt了


用matzerofix(yourmatfile.mat,'fix')就处理就好了。


matlab之后的版本ms没有这个问题

No comments:

Post a Comment