Clear Filters
Clear Filters

Display the array/matrix in GUI

3 views (last 30 days)
Son
Son on 15 Aug 2013
Hi everyone,
I have a GUI and now I want to display my analysis result which is an array by clicking a button in GUI. What should I do inside the callback function of this button. Does anyone have an idea how to do that ?.
  1 Comment
Jan
Jan on 16 Aug 2013
You will have to be way more specific than this to recieve a reasonable answer to your question. What kind of data is the result of your analysis (i.e. vector, matrix, cell array ... ) and how do you want to display it (i.e. do you want to plot it, export it to the file system or present it on the GUI in a uitable? - I'm guessing the latter, as you tagged your question with 'table')?

Sign in to comment.

Answers (1)

David Sanchez
David Sanchez on 16 Aug 2013
In the callback function, you do the same that you would do in the command line in order to present your data, taking from granted that you placed an axis object in your GUI.
If you want to plot data, place in the following in your callback function:
plot(your_x_data, your_y_data)

Categories

Find more on Migrate GUIDE Apps 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!