How to get a matrix from uitable

1 vue (au cours des 30 derniers jours)
zahraa alsheala
zahraa alsheala le 13 Mai 2013
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.

Réponses (1)

Mark Whirdy
Mark Whirdy le 13 Mai 2013
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 commentaires
zahraa alsheala
zahraa alsheala le 14 Mai 2013
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 le 14 Mai 2013
mydata = cell2mat(myCellArray);
Then check to see if it is square or not. If it is not, what do you want to do?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by