For loop Optimization?
古いコメントを表示
Hi everybody, i want to optmize(make faster loop) this function:
for k=1:2001
integrando=exp(i*2*pi*var_spaziale(k)*var_spettrale).*funzionefor k=1:N
integrando=exp(i*2*pi*var_spaziale(k)*var_spettrale).*funzione;
f(k)=du*sum(integrando);
end
How is it possible to do please?
Many thanks.
3 件のコメント
James Tursa
2017 年 9 月 19 日
Please correct the code that you posted. Then let us know the dimensions of the variables involved.
denis bertin
2017 年 10 月 1 日
denis bertin
2017 年 10 月 3 日
編集済み: denis bertin
2017 年 10 月 3 日
採用された回答
その他の回答 (1 件)
denis bertin
2017 年 10 月 3 日
編集済み: denis bertin
2017 年 10 月 3 日
0 投票
カテゴリ
ヘルプ センター および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!