필터 지우기
필터 지우기

Retrieve data from uitable when user enters data

조회 수: 1 (최근 30일)
Kyriaki Mylonas
Kyriaki Mylonas 2018년 8월 21일
댓글: Kyriaki Mylonas 2018년 8월 21일
Hello guys! I try to create a uitable for the user to insert values. When the user closes the window, the program must take the inputs and create a matrix. I wrote that: f=figure(1); t=uitable(f); t.ColumnEditable=true; d={'ACCP',0;'AIR',0;'AIRP',0;'ATOS',0}; t.Data = d; waitfor(gcf); datamatrix=get(t,'Data'); and I get this error: Error using matlab.ui.control.Table/get Invalid or deleted object. Please help me! Thank you

채택된 답변

M
M 2018년 8월 21일
You should handle the deletion of the table properly as explained here:
With this example you can retrieve the data when the figure is closed, you can adapt it to retrieve the data whenever the user enter a new value.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by