Impact of functions on calculations time!
Show older comments
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.
Accepted Answer
More Answers (1)
Naeem Roshan
on 10 Sep 2014
0 votes
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.
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!