MATLAB: How to obtain real-time data from the MATLAB Profiler while the code is running

duringexecutionMATLABperformance

I am working with many large data sets. My processing code takes a long time to run; it essentially iterates once for each data set. I would like to see MATLAB Profiler results without running my entire code.

Best Answer

The ability to obtain real-time results from the Profiler is not available in MATLAB.
To work around this issue, either profile a single iteration of your loop or use the TIC and TOC functions to time specific lines of code.