如何修复MATLAB中的“内存不足错误”?

时间:2015-03-21 02:27:56

标签: arrays matlab out-of-memory

我的代码中的两行,如下所述,抛出"内存不足错误"。这可以纠正吗?

[x1,x2]=textread(tline,'%u,%u'); x1 and x2 contains integer value  
 %  disp(x1);
 %     disp(x2);   
previousMovie =  nextMovie;
nextMovie     =  x1;
allMovies     =  [allMovies x1];  /////////      error in this line
if(iline ==1)        
    if((nextMovie ~= previousMovie) & (previousMovie==0))
        currentGenres = x2;     
    end
end   
if(nextMovie == previousMovie)
    currentGenres = [currentGenres x2];/////////       also in this line error
end           

0 个答案:

没有答案