Borrar filtros
Borrar filtros

Redirect output of MATLAB verbose function

6 visualizaciones (últimos 30 días)
Yoav
Yoav el 17 de Dic. de 2023
Respondida: Walter Roberson el 17 de Dic. de 2023
I'm writing an app which involves the `fminbnd()` function. The function is a bit slow (takes several seconds to complete) so I want to print status updates to the user. Naturally, I set the `'Display'` option of `fminbnd()` to `'iter-detailed'`, which is the intended solution.
When running the app from MATLAB (i.e. the `.mlapp` file) the verbose output of the function can be easily seen by looking at the console in MATLAB itself. Unfortunately, the users will get a standalone app, without the console. So, the verbose output will be hidden from them.
Is there a way to display the output of the function in a textbox (or any other way) visible to the users of a standalone MATLAB app?
Thanks a lot!

Respuestas (1)

Walter Roberson
Walter Roberson el 17 de Dic. de 2023
fminbnd() supports optimset() options, including OutputFcn and PlotFcn .
So you can program a PlotFcn -- which will be called with an initialization phase, and a update phase, and a close-down phase.

Categorías

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

Productos


Versión

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by