MATLAB: Get function output and time from timit

function handlesfunctionsMATLABtimeit

I have functions I need to time, which returns a single output. All functions are in separate files. How do I get that returned output when using timeit?
So far I have used tic,toc. But want to use timeit from now on.

Best Answer

You cannot get the actual function output from timeit.
You can look in the File Exchange for the code for timeit and modify that code to suit your needs.
Remember that timeit runs the code a variable number of times.
Related Question