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에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!