我的代码中的两行,如下所述,抛出"内存不足错误"。这可以纠正吗?
[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