How to get a matrix from uitable
2 次查看(过去 30 天)
显示 更早的评论
Hi, We have tried to get a value from uitable in a matrix that the user will insert. Every time we try it the GUI dose not read the value from table.
0 个评论
回答(1 个)
Mark Whirdy
2013-5-13
So the line below does not work (replacing "uitMyTableName" with whatever your table is called)?
myCellArray = get(handles.uitMyTableName,'Data');
Can you break the code at this line and tell me what exactly happens?
2 个评论
Walter Roberson
2013-5-14
mydata = cell2mat(myCellArray);
Then check to see if it is square or not. If it is not, what do you want to do?
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!