Display app designer results in commande window?

3 Ansichten (letzte 30 Tage)
alifedjoun
alifedjoun am 17 Feb. 2019
Bearbeitet: Soumya am 2 Apr. 2025
Actually i am working on an application with app designer,where the user choose the function and the data .
my question is how can i send the output directly to the command window (display the result on command window)?
thanks for any help

Antworten (1)

Soumya
Soumya am 2 Apr. 2025
Bearbeitet: Soumya am 2 Apr. 2025
In MATLAB App Designer, we can display output directly in the MATLAB Command Window by using standard output functions.
When developing an app where we select a function and input data, we can use functions likedisp’ and‘fprintfto print results directly to the Command Window.
Here's how you can implement this functionality:
  • Select Component: Choose the UI component (e.g., button, dropdown) in App Designer.
  • Create Callback: In the Component Browser, use the "Callbacks" section to create a callback.
  • Display Output: Usedisp’ or ‘fprintfin the callback to show results in the Command Window.
This way you can successfully output the data that you want to obtain.
Please refer to the following documentation to know more about some of the MATLAB output functions:
I hope this helps!

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by