I know that I can use the profiler from the GUI
Desktop-> Profiler
Is there any way to run by a command?
You can use the command
profile on
and to stop profiling , you use:
profile off
See documentation for more info.
The notation is
profile on
%% your functions here
profile off
Many of the arguments for the command "profile" have a hyphen though, just not on and off. See matlab's documentation. You can also use the command:
profile('info')
to get a structure containing your results, if you're working entirely on the command line, and not using the viewer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With