matlab提示"Message Catalog MATLAB:FileIO was not loaded from the file. Please check file location, "

版权声明:虽然本文为博主原创文章,不过随便转载,但必须留下出处。 https://blog.csdn.net/Fighting_Dreamer/article/details/71499403

读取一堆文件或者图片时,突然matlab报这个错..

Message Catalog MATLAB:FileIO was not loaded from the file. Please check file location, format or contents

网上说的是文件句柄没有关闭,,fclose(all),,,我试了试是不行的.
我自己发现的问题是,自己的一批图片里面,存在两种文件格式,例如有1.jpg 还有2.bmp 就是文件的后缀名不一样,虽然他们都是图,单独的情况下程序都可以读,但是批量情况下就会出错,也许是matlab(注:win10 64位,matlab2017a)的bug吧…自己把图片的后缀名改一下就好了,对,就是直接改就好了,统一一下,把1.jpg改为1.bmp就ok了,,,[怎么批量改就是自己写matlab代码了.提示:可以用mkdir函数新建文件夹],,没了.

猜你喜欢

转载自blog.csdn.net/Fighting_Dreamer/article/details/71499403