For loop Optimization?
Mostrar comentarios más antiguos
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 comentarios
James Tursa
el 19 de Sept. de 2017
Please correct the code that you posted. Then let us know the dimensions of the variables involved.
denis bertin
el 1 de Oct. de 2017
denis bertin
el 3 de Oct. de 2017
Editada: denis bertin
el 3 de Oct. de 2017
Respuesta aceptada
Más respuestas (1)
denis bertin
el 3 de Oct. de 2017
Editada: denis bertin
el 3 de Oct. de 2017
0 votos
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!