For loop Optimization?
Mostra commenti meno recenti
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 Commenti
James Tursa
il 19 Set 2017
Please correct the code that you posted. Then let us know the dimensions of the variables involved.
denis bertin
il 1 Ott 2017
denis bertin
il 3 Ott 2017
Modificato: denis bertin
il 3 Ott 2017
Risposta accettata
Più risposte (1)
denis bertin
il 3 Ott 2017
Modificato: denis bertin
il 3 Ott 2017
0 voti
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!