필터 지우기
필터 지우기

How to delete all entries in uitable?

조회 수: 16 (최근 30일)
Dominik Kohlmeier
Dominik Kohlmeier 2016년 8월 8일
답변: Christopher A. De Oliveira 2019년 7월 14일
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
Dominik Kohlmeier 2016년 8월 8일
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
Christopher A. De Oliveira 2019년 7월 14일
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