how to solve uitable error?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
best16 programmer
le 15 Juin 2017
Réponse apportée : Devony Whiting
le 27 Jan 2020
hi everyone, i am using a gui application and i faced this error about putting data in uitable:
da(1,2)=num2cell(horzcat(num2str(a),'±',num2str(b)));
set(handles.uitable1, 'data', da);
Assignment has more non-singleton rhs dimensions than non-singleton subscripts
can you please help me with that.
thank you
0 commentaires
Réponse acceptée
Guillaume
le 15 Juin 2017
Modifié(e) : Guillaume
le 15 Juin 2017
It's most likely that the error comes from the 1st line. What are you trying to do with that line:
da(1,2) = num2cell(horzcat(num2str(a),'±',num2str(b)));
Unless da is some custom object that overrides standard () assignment the above would result in an error.
I strongly suspect that the num2cell call is a mistake.
3 commentaires
Plus de réponses (1)
Devony Whiting
le 27 Jan 2020
I have a table that has no errors running, but will not display the entire table. I have played around with the dimensions in the code and that does not seem to change the size of the window the tble is in, which is much too small. Is there a way to change this?
Thank you!
0 commentaires
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!