Filter löschen
Filter löschen

Show the output arguments of a function call : MATLAB app designer

9 Ansichten (letzte 30 Tage)
I have loaded a .mat file using push button. Then I called a function to bring out the mean accuracy (For this also i have used push button). In that function training and testing data gets splitted and the accuracy of the classified output is displayed.
mean_value=fn_call(app.feature) ;%%mean_value is the mean of accuracy over 10 trials, app.feature contains both feature and its label
Now i want to display this mean_value in app designer. For this what I have to do?? I am not sure that above function call is correct or not (While running in .m file it gives the value. If I want to check the design at every stage what I want to do?). Kindly clarify the doubts and the mistakes if I made it anywhere..Thanks in advance
  2 Kommentare
Kevin Holly
Kevin Holly am 3 Nov. 2022
Where do you want to display the results? Did you want to display the results in a uitable? Do you just need to see the results for debugging purposes? Did you want to display results in command window in this case? Would you want to save the results as a property value so you can use it later? Did you want to save the results to a file?
Little Flower
Little Flower am 3 Nov. 2022
@Kevin Holly I want to see the result for debugging purpose.. Thank you

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Jayant Gangwar
Jayant Gangwar am 23 Nov. 2022
Hi,
You can use UI Components like "Edit field", "Text Area", and change their properties after you use the push button to call the function, to display the result of your function call.
Refer to the MATLAB Answers below for more information on how to display result in Text Area-
Refer to the MathWorks documentation for "Edit Field" and "Text area" for more details on how to use these components -

Weitere Antworten (0)

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