I am trying to create a temp matrix to store data to later match and penalize and overwrite the original matrix. I am able to completely run through the code but the final penalization and overwriting of matrix Downlink{ii,2} is not happening. I think it has to do with how Matlab has temp variables compared to C. I have attached my code to show what I have done so far.
%if true
for ii=1:size(Downlink) for jj= 1:size(endColumn2) if (Downlink(ii,1)==(tgbidsdouble(1,jj))) temp = {1,jj}; save temp; for(kk = 1:size(endColumn)) if(temp == downlinkTable(kk,1)) Downlink{ii,2} = Downlink{ii,2}+ downlinkTable{kk,3}; end end end endend
Best Answer