I have a program which accesses some functions in another class. I want to find out how often these functions are accessed and the values the variables inside the function take when they are accessed.
I am doing it right now using a struct to keep track of the various parameters I want to capture.
But is there anything in-built in Matlab that can do this? I want to capture this data, plot it and find out the model of access (Linear, exponential, etc..).
I have a program which accesses some functions in another class. I want to
Share
For the function access info you can use the built-in profile function:
The output struct in
p, i.e.p.FunctionTable, will give number of calls in functions and total running time.