MATLAB Answers

Excel Data into GUI table

9 views (last 30 days)
Ramon Ticzon
Ramon Ticzon on 12 Mar 2019
Commented: Ramon Ticzon on 14 Mar 2019
Hi. I have a 66x3 cells of data. Im having a problem on importing this data from Excel to GUI table. How can I import them to the table? I want the results to show ONLY after I press a button. Is there a way to do it? Can you provide the code for it. Thank You very much!
Ramon Ticzon
Ramon Ticzon on 12 Mar 2019
What I mean is that I need the user to click a button before projecting the excel data.

Sign in to comment.

Accepted Answer

Adam Danz
Adam Danz on 12 Mar 2019
Here's an idea. Load your data ahead of time and store it in the UserData property of your button. That can be done anywhere in your code.
app.Button.UserData = data;
Then when the button is pressed and the ButtonPushedFcn callback is executed, you can move the data from the UserData property to the UItable.
function ButtonPushed(app, event)
app.UITable.Data = app.Button.UserData;
  1 Comment
Ramon Ticzon
Ramon Ticzon on 14 Mar 2019
Thank you for your answer!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!