In any pattern recognition model complexity is one of the important factors that needs to be taken into account. Using Matlab, what are the possible ways to measure this factor? The tic toc time computing is well known for measuring the consumed time for executing any code, but can anyone suggest any other way for the same purpose?