Effacer les filtres
Effacer les filtres

How to delete all entries in uitable?

16 vues (au cours des 30 derniers jours)
Dominik Kohlmeier
Dominik Kohlmeier le 8 Août 2016
Hi,
I made a GUI, which performs extensive calculations by clicking on a calc button. Certain results of this calculation are saved in a matrix and are presented in a uitable. If input parameters are changed that way, that you will get less solutions by next time clicking the calc button, you might still have parts of the old solution at the end of the uitable, because the solution matrix is shorter now. That's a bit annoying. Is there any command by which the table data is deleted and which I can write at the beginning of the callback function of the calc button?
Thanks in advance.
Cheers kohli311

Réponse acceptée

Walter Roberson
Walter Roberson le 8 Août 2016
Modifié(e) : Walter Roberson le 8 Août 2016
set(handles.uitable1, 'Data', {})
However, it sounds to me as if you might be creating a new uitable each time through instead of updating the old one as you go.
  1 commentaire
Dominik Kohlmeier
Dominik Kohlmeier le 8 Août 2016
Ah inserting this command works quite well. It's doing exactly what I wanted it to do. Thanks for your help!

Connectez-vous pour commenter.

Plus de réponses (1)

Christopher A. De Oliveira
Christopher A. De Oliveira le 14 Juil 2019
thanks

Catégories

En savoir plus sur Time Series Events 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