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

12 views (last 30 days)
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 Comments
Kevin Holly
Kevin Holly on 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 on 3 Nov 2022
@Kevin Holly I want to see the result for debugging purpose.. Thank you

Sign in to comment.

Accepted Answer

Jayant Gangwar
Jayant Gangwar on 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 -

More Answers (0)

Categories

Find more on Downloads 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!