필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Hi, I have a uitable in a GUI, and after the user enters text, I would like to clear the contents of the uitable to allow the user to reenter data into the table.

조회 수: 1 (최근 30일)
How can I clear the contents of the uitable without changing the data type of the table. The code I am using to do clear the tables so far is set (handles.uitable1, 'data', cell(size(get(handles.uitable1,'data')))); However, when I use this to code to clear the table and when the user tries to enter text into the table a NaN error is coming up. Any suggestions on how to fix this please? I already tried inserting this line of code; set (handles.uitable1, 'data', cell(size(get(handles.uitable1,'data')))); set(handles.uitable1, 'ColumnFormat', 'char'); but the error still exists.

답변 (0개)

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by