How to delete all entries in uitable?

17 次查看(过去 30 天)
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

采纳的回答

Walter Roberson
Walter Roberson 2016-8-8
编辑:Walter Roberson 2016-8-8
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 个评论
Dominik Kohlmeier
Ah inserting this command works quite well. It's doing exactly what I wanted it to do. Thanks for your help!

请先登录,再进行评论。

更多回答(1 个)

Christopher A. De Oliveira
thanks

类别

Help CenterFile Exchange 中查找有关 Time Series Events 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by