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!