필터 지우기
필터 지우기

Guide NaN problem for user inputs to the uitable

조회 수: 1 (최근 30일)
Baris Gungordu
Baris Gungordu 2015년 1월 19일
I have a table and I use an 'add row' button to append new rows when necessary. I have 6 columns and the first column is ought to be Name. I want the user to be able to edit the first row and write on it. However, when a letter is written it becomes 'NaN'.
The code to add the row is:
data = get(handles.uitable1, 'Data');
data(end+1,:) = [0 0 0 0 0 0];
First zero should be displayed as 'Name' and should be editable.

답변 (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