For loop Optimization?
Ältere Kommentare anzeigen
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 Kommentare
James Tursa
am 19 Sep. 2017
Please correct the code that you posted. Then let us know the dimensions of the variables involved.
denis bertin
am 1 Okt. 2017
denis bertin
am 3 Okt. 2017
Bearbeitet: denis bertin
am 3 Okt. 2017
Akzeptierte Antwort
Weitere Antworten (1)
denis bertin
am 3 Okt. 2017
Bearbeitet: denis bertin
am 3 Okt. 2017
0 Stimmen
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!