For loop Optimization?
Show older comments
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 Comments
James Tursa
on 19 Sep 2017
Please correct the code that you posted. Then let us know the dimensions of the variables involved.
denis bertin
on 1 Oct 2017
denis bertin
on 3 Oct 2017
Edited: denis bertin
on 3 Oct 2017
Accepted Answer
More Answers (1)
denis bertin
on 3 Oct 2017
Edited: denis bertin
on 3 Oct 2017
0 votes
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!