GUI Uitable: set column data to variable
Show older comments
Hey, all, thanks for reading this,
I set up a GUI uitable with some data, and I would like to use that data in another callback function. I was wondering, how do I select data on a column by column basis in other callback functions and assign it locally to variables?
Thanks for your advice
Accepted Answer
More Answers (1)
Seyhan Emre Gorucu
on 6 Aug 2012
Edited: Seyhan Emre Gorucu
on 6 Aug 2012
Hello,
You need to assign a CellEditCallback function to the table. You can do it both programmatically and from the guide. Once you change something on any editable column, it should go that function. You can get all the data from
get(eventdata,'Data')
You can also get other information via
Indices.Indices
Indices
This would be something like:
mytable_CellEditCallback(eventdata,Indices)
get(eventdata,'Data')
Indices.Indices
Indices
end
Don't forget the assign the function first.
1 Comment
Brian
on 6 Aug 2012
Categories
Find more on Develop Apps Using App Designer 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!