How to display a table in MATLAB App?

I am trying to input all the information from an independent table to a table on the matlab app. Please help me with this.The first picture contains the code that generates the table itself. The second shows the space to link this table with the app.

4 Comments

You don't want to put table construction code in a cell edit callback. Put it in whatever function is called when you want to create it. I don't know when this is. Is it as soon as you open the app? In which case put it in a function called from the constructor. Is it in response to a pushbutton? In which case put it in a function called by the pushbutton's callback. The table itself is stored on 'app' so is easily accessible in any callback.
It is in response to a push button. The problem is that the table opens up in a separate window instead of showing up on the designated space on the app's panel. I have attached a picture showing the problem. I would really appreciate it if you can help me out in this.
Well obviously you need to modify code when you move it from standalone into an app. Your uitable already exists in the App so you should be setting its properties, not creating a new table.

Sign in to comment.

Answers (0)

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Asked:

on 6 Aug 2018

Commented:

on 6 Aug 2018

Community Treasure Hunt

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

Start Hunting!