I have a matrix (exp_data) of size 25000*45000. I need to perform the following operations as in the code, however with the for loop it takes ~4 hours to operate,
beta is a set of 3 values, for which I need to perform the operations. beta=[0.1, 0.04, 0.6]
any help is much appreciated
for m=1:3for i=1:25000 for j=1:45000if exp_data(i,j)>1.5;xes(i,j)=exp(beta(m).*(exp_data(i,j)));else xes(i,j)=1;end; endend;xe(:,:,m)=xes;end;
Best Answer