![]() "That's more than 400 times faster! Why is foobar so slow in a function?"Įxperienced MATLAB users know that the performance problem has little to do with foobar(k) on line 4 of the profile report and much to do with y(k) = on the same line. "You can see that foobar takes about 0.35 ms per call (70.93 / 200000), but when I call foobar 200000 times from the command line in a loop it only takes 8.5e-7 seconds per call: ![]() "Well, I ran the profiler on my function flibbergibble, which calls foobar: The tech support engineer will start digging into the question to see why the unhappy MATLAB user has reached his conclusion:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |