I want to log the name of all the functions that are called for each Object instance in MATLAB!
For example if we have this class:
classdef ClassName methods function obj = ClassName() ... end function ordinaryMethod() ... end endend
And i run the following code:
testObj = ClassName(); testObj.ordinaryMethod();
I can somehow log that the ordinaryMethod was called for testObj which is a instance of ClassName. To make it clear, I dont want to just get a list of all the function names, I only need those that are used in my program.
Can anyone give me ideas, how i can achieve this? Ideal solution is that I don't have to change the function codes!
Best Answer