How do i create a UItable with the data i want to be filled in the table ?

3 次查看(过去 30 天)
I have dragged and dropped a UItable in my Matlab GUI.I want to fill the table with some data.I dont have an callback function for a uitable where i can put my datas from the .m file.How do i start to fill datas into the uitable manually?
Kindly help me with this.Can anyone give me an example of this?

采纳的回答

Geoff Hayes
Geoff Hayes 2018-4-20

sachin - since you mention "dragged and dropped" the uitable onto your GUI, I'm assuming that you are using GUIDE. If so, then you can use the GUI's OpeningFcn to populate the data with your data. See https://www.mathworks.com/matlabcentral/answers/263992-how-can-i-create-table-of-fixed-values-in-matlab-gui for an example.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by