Show the output arguments of a function call : MATLAB app designer
12 次查看(过去 30 天)
显示 更早的评论
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 个评论
Kevin Holly
2022-11-3
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?
采纳的回答
Jayant Gangwar
2022-11-23
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 -
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!