How to measure how long a function works in Matlab?

I have a Matlab program that runs longer than I would like. Is there a built-in way of profiling Matlab, similar to how time works on unix?

+4
source share
1 answer

There are three ways:

The profiler allows you to see how long each line takes, and therefore, this is the best way to find bottlenecks.

+5
source

Source: https://habr.com/ru/post/1307230/


All Articles