Impact of functions on calculations time!
古いコメントを表示
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.
採用された回答
その他の回答 (1 件)
Naeem Roshan
2014 年 9 月 10 日
0 投票
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.
カテゴリ
ヘルプ センター および File Exchange で Whos についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!