Info
この質問は閉じられています。 編集または回答するには再度開いてください。
IS THERE ANY WAY TO RESOLVE THIS LOOP ISSUE AS IT TAKES ALOT OF TIME TO EXECUTE
1 回表示 (過去 30 日間)
古いコメントを表示
for i=1:size(A,1)
for j=1:size(A,2)
if(A(i,j)==100)
Predict_Value=Pred_Cal(i,j,B(:,j),B);
Output(i,j)=Predict_Value;
L=L+1;
L
end
end
end
i have this code the function pred calculates value 1682 times for a single value passed i need these coordinates i,j to to pass it to function where 100 exists,,currently there are 48000 100,s in matric of A, i am using this matric which is of 943*1682...so too much time take in this code kindly help me here in this code for more quick results
1 件のコメント
Stephen23
2016 年 8 月 29 日
Start by reading this: http://www.mathworks.com/help/matlab/matlab_prog/techniques-for-improving-performance.html
回答 (0 件)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!