Tables in GUI / GUIDE
Afficher commentaires plus anciens
Ok, I followed a video by Doug Hull on basics for Tables in GUIDE: http://blogs.mathworks.com/pick/2008/05/07/matlab-basics-adding-a-table-to-a-gui/
and made the assumption that to set the data in a table you can do:
function Table_CellEditCallback(hObject, eventdata, handles)
info = [1 2 3;4 5 6];
set(hObject,'data',info);
and it worked...
I then added some complexity, I get some appdata and set it to be info and the set call broke. Apparently there is no 'data' property and I get the following:
Error using hg.figure/set The name 'data' is not an accessible property for an instance of class 'figure'.
I have rolled back the code to when it was working, restarted MATLAB and it's still broken. I have no idea why it has stopped working.
Help Please!
Réponse acceptée
Plus de réponses (1)
John
le 8 Mar 2012
0 votes
Catégories
En savoir plus sur Scripts dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!