in matlab 2019a, profiler does not work correctly
이전 댓글 표시
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!
댓글 수: 1
I also want to ask this question!
채택된 답변
추가 답변 (1개)
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
zhizhuo
2019년 7월 14일
Adam Danz
2019년 7월 15일
What are you timing? If it's a custom function, could you attach it along with some example inputs?
zhizhuo
2019년 8월 2일
zhizhuo
2019년 8월 3일
Adam Danz
2019년 8월 3일
Glad the reinstall worked!
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.
카테고리
도움말 센터 및 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!