MATLAB: Is there any way to count operations/flops in an iteration of Matlab code

countingflopsoperationstracking code changes

For purposes of processor selection, I would like to know if there is a function out there for computing operations during an iteration of Matlab code. Also, does anyone have an established system/method for tracking changes between Matlab code and, say, corresponding C++ code, where the updates originate in the Matlab code and auto-coding is not being used.
Related Question