How to demonstrate analysis time in app designer window ?

6 views (last 30 days)
Hi all
I have tic;toc in my code. How can I display the analysis time in an edit field as : hrs:minutes:seconds ?
should it be numeric or text edit field ?

Accepted Answer

Ameer Hamza
Ameer Hamza on 25 Apr 2020
Text edit field will be more suitable. See the attached app.
  31 Comments
Ameer Hamza
Ameer Hamza on 2 May 2020
Without inspecting the actual app, there is not much that can be done. As you have also observed that it works in a standalone app. So there must be some other thing in that app that is preventing that.
farzad
farzad on 2 May 2020
All I have after finishing the loop :
te=toc
waitbar(1, h1, 'msg')
close all
h2 = waitbar(1,'msg');
app.EditField_7.Value = char(duration(0,0,te))

Sign in to comment.

More Answers (0)

Categories

Find more on Interactive Control and Callbacks 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!