tic toc command in MATLAB GUI
古いコメントを表示
I'm using tic toc commands to know about the computation speed, however if i use this command it gives output in command window.
I need to minimize all GUI'S to check time taken by my code. How can i display time on GUI window? So, that user can easily estimate computation speed without minimizing any windows.
回答 (3 件)
Azzi Abdelmalek
2013 年 5 月 15 日
t=toc
Then display t in an edit text
2 件のコメント
Chethan
2013 年 5 月 16 日
Azzi Abdelmalek
2013 年 5 月 16 日
t=toc
set(handles.edittext1,'string',num2str(t))
Sean de Wolski
2013 年 5 月 16 日
t = tic;
set(uicontrol('style','text'),'String',toc(t));
Use set to set the 'String' property of the textbox you care about.
doc set
For more info.
Jan
2013 年 5 月 16 日
t = toc;
set(handles.time, 'String', sprintf('%g', t));
カテゴリ
ヘルプ センター および File Exchange で Shifting and Sorting Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!