MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB基础] 求助: load /save .mat 文件时出错 急! (https://www.labfans.com/bbs/showthread.php?t=12433)

潇水之源 2010-12-28 17:44

求助: load /save .mat 文件时出错 急!
 
执行语句:
1,前一个m文件最后执行了save(icon_file_names{i}, 'descriptor_neimat');语句将许多矩阵descriptor_neimat 分别存入了‘Context_*.mat’文件中(*为数字)。
2,后面的m文在执行load 时执行了下面语句
%% Load up all interest points from allimages....
for i = 1:nImages_tra

%% load up all interest points

load(icon_file_names{i});
%%此行出错

[M,N] = size(descriptor_neimat);

k= randperm(N);

all_descriptors =[all_descriptors,descriptor_neimat(:,k(1,1:Context.pca_p))];
end
出现错误为:



Error using ==> load
Can't read file D:\program files\matlab\2008a\work\xiaolei\common\Context\Context_0333.mat
Error in ==> do_pca at 29

load(icon_file_names{i});
显示无法读取该文件。
直接打开这个文件时,里面没有数据,应该是没有存入吧,是存入时的问题?

周围其它的mat文件都没有问题。但每次执行时候出错的文件并不是固定的,总是会随机出现一两个这种里面没有数据的mat文件,我下面的程序也没办法执行。

而且我在其它电脑上执行这些m文件时并不会出现这样的错误,请见过类似问的帮帮忙啊~ 非常着急,请高手帮帮忙啊~


所有时间均为北京时间。现在的时间是 14:00

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.