hi, i did GUI for image processing using matlab to see the running time. but i cannot show the running time in the gui, its only shown in the matlab command window. can anyone show me how to make it? please help me :(
Show older comments
this is my GUI, and i want to show my total running time for the image to appear in this gui.

Accepted Answer
More Answers (1)
Benjamin Kraus
on 7 Mar 2018
0 votes
4 Comments
nuh lili
on 7 Mar 2018
Benjamin Kraus
on 7 Mar 2018
Then you need to capture the output from toc...
t = tic;
% do stuff
sec = toc(t);
The output from toc is the number of seconds since you called tic. No output is displayed in the command window.
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!