Reputation: 467
I'm not too familiar with matlab profiling tool. But since my matlab program takes too long to run I was advised to try profiling it. When I did it, I got the result that most of the running time (self time) is spent in a function that I didn't write in my code with the name: mupadmex(MEX-file) (which is called 17266 times). Is this means that I cannot do anything to improve the running time of my code?
Upvotes: 0
Views: 720
Reputation: 2714
Three solutions without knowing more to this problem
Reduce amount of call
Just try to remove the amount of call of this mex function, maybe some of the calls are redundant?
Know what it does
Maybe you know what that function does and you could just write a more efficient way to do the same thing?
Change that funciton
If you can get hands of the code of that mex function, you could try to improve it yourself.
Upvotes: 1