Impact of functions on calculations time!
Mostrar comentarios más antiguos
First I apologize for my poor English, I have a question. It's important for me. My program in Matlab is too slow! I didn't use function in my program. do function reduce calculations time? or increase it? Thanks.
Respuesta aceptada
Más respuestas (1)
Naeem Roshan
el 10 de Sept. de 2014
0 votos
Functions increase performance of the codes and reduce the run time. Its better to split large codes into functions. There are also other things you should consider when writing a MATLAB code in order to increase the performance. For instance avoiding loops, preallocating, vectorization and etc.
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!