Hi all,
I am searching through a big matrix file ( nearly 850 MB) and tried to loop through that matrix but it take a massive amount of time. I wonder if are there any method to run a simple for loop in this "big data" matrix. My code is at belown
clearvars;load('landorocean_250_W.mat')tA_world = tall(A_world);tx_world = tall(x_world);ty_world = tall(y_world);[m_1,n_1]=size(A_world);for i=1:m_1 for j=1:n_1 if gather(tA_world(i,j) == -32768) island_250m_1(i,j)=0; else island_250m_1(i,j)=1; end endend
Thank you for your time,
Sincerely,
Best Answer