For loop Optimization?
Afficher commentaires plus anciens
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 commentaires
James Tursa
le 19 Sep 2017
Please correct the code that you posted. Then let us know the dimensions of the variables involved.
denis bertin
le 1 Oct 2017
denis bertin
le 3 Oct 2017
Modifié(e) : denis bertin
le 3 Oct 2017
Réponse acceptée
Plus de réponses (1)
denis bertin
le 3 Oct 2017
Modifié(e) : denis bertin
le 3 Oct 2017
0 votes
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!