Hello I have an editable uitable in Matlab GUI. I have a pushbutton to clear the contents of the uitable that is entered by the user. However, anytime I clear the table and reenter text I get a NAN error.
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Vandana Ramdeo
le 18 Déc 2013
Réponse apportée : Suraj Srivastava
le 18 Fév 2015
The code I am using to clear the data is as follows.
set (handles.uitable1, 'data', cell(size(get(handles.uitable1,'data'))));
How do I prevent the NaN error so that I can reenter text into the table.
0 commentaires
Réponse acceptée
Walter Roberson
le 19 Déc 2013
I cannot reproduce the issue based on your code. What is your ColumnFormat set to for your uitable? Are you getting the NaN showing up in the table or when you process the table?
Plus de réponses (2)
Vandana Ramdeo
le 19 Déc 2013
1 commentaire
ES
le 19 Déc 2013
set the column format to char. Your issue will be solved. You can do that by using the Property Inspector of your uitable or by using
set(handle.uitable,'columnformat',{'char'...});
Suraj Srivastava
le 18 Fév 2015
Hi,
could you please help me for the same....I want to make GUI in which there is an UITABLE of 14*3......of first two columns are fixed while third one is not fixed. It should get input from the user manually.
Kindly Help me out.
0 commentaires
Voir également
Catégories
En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!