I want to indicate what values an array with a specific value (throughput performance) that exists within the loop will have over time.
How to express the x-axis as execution time or elapsed time through tic, toc function, or other methods?
The structure I think is below, but it doesn't seem to be the solution I want.
...
tic;
for i = 1:1:user_defined_num
toc;
end
plot(1:toc,ave_throughput_array)
...

 채택된 답변

VBBV
VBBV 2021년 4월 6일
편집: VBBV 2021년 4월 6일

1 개 추천

%if true
tic;
for i = 1:1000
disp('Running your program ') ;
pause(20);
end
toc
plot(1:round(toc),linspace(1,10,round(toc)))
May be you want this

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

질문:

2021년 4월 6일

편집:

2021년 4월 6일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by