in matlab 2019a, profiler does not work correctly
11 次查看(过去 30 天)
显示 更早的评论
I just installed MATLAB 2019a and it seem that the profiler does not work correctly!
I am using matlab as academic user with academic licence, when I want to profile my code, I click Run and Time in the Code section On the Home tab, but after the code is finished, I get nothing but the total time in the profile summary like below:
is it a bug or something has changed? please help me!
采纳的回答
Eric.N
2019-8-23
This is in fact a system font problem. Probably due to the font default setting for chinese version.
Please set in preferences-> Font->Custom, the font for "Profiler" as "Desktop code" or any other available custom font. Then your problem will be solved. Good Lucky!
4 个评论
zexi wang
2020-6-13
Thanks very much, it works really fine!!! I can't find any answer searching by Chinese LOL
更多回答(1 个)
Adam Danz
2019-7-9
编辑:Adam Danz
2019-8-2
It works fine for me (r2019a) when I time the following two lines.
t = randi(1000,60,1);
plot(1:60,t, 'o')
If the "Run and Time" button is not responding as expected, try running the profiler manually like this.
profile on
% < run your code >
profile viewer % This produces the report
profile off
profile('on', '-detail', 'builtin')
8 个评论
Adam Danz
2019-9-17
update: I un-accepted my answer and will accept Eric's answer since it seems to fix the problem for several people.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!