How to get a matrix from uitable

4 次查看(过去 30 天)
zahraa alsheala
zahraa alsheala 2013-5-13
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.

回答(1 个)

Mark Whirdy
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 个评论
zahraa alsheala
zahraa alsheala 2013-5-14
We have tried this code and its work , but we want the table to be a squared ( ex: 2*2, 3*3 ). We want this because we implement Hill algorithm which only accept squared table . We try to do that but the table dose not accept that ????
Walter Roberson
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?

请先登录,再进行评论。

类别

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