Use the Run & Time in a function called from an App (mlapp)

3 visualizaciones (últimos 30 días)
Hugo FOTIA
Hugo FOTIA el 10 de Nov. de 2021
Respondida: Srijith Kasaragod el 26 de Nov. de 2021
Hello,
I'm using a program that use a mlapp interface, and I'm calling different functions by clicking on buttons. I'd like to run one of these functions with the "Run & time" option but I don't know how to do it (I have no knoledge in matlab app design). I can't do it manually by using the function directly in matlab, I have to pass through the interface, so is there a way to set te button click as "Run & Time the function X" Instead of "run the function X" ?

Respuestas (1)

Srijith Kasaragod
Srijith Kasaragod el 26 de Nov. de 2021
Hi Hugo,
Refer this document to read on 'tic' and 'toc' functions which measure elapsed time. The required function call inside the app can be specified between tic and toc function calls and 'ButtonPushedFcn' would measure elapsed time.
Regards.

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by