How to place data in UItable second row

set(handles.uitable,'data',MAC);
MAC=
{'6216'} {'23'} {'BEC5'} {'9ECB'} {'BDE5'} {'20'} {'8EA6'} {'9418'} {'BF'} {'12'}
This is placed in first row
I want to place second row

답변 (1개)

Chunru
Chunru 2021년 8월 31일

0 개 추천

figure
h = uitable; % create uitabl
MAC={'6216', '23', 'BEC5'; '6216', '23', 'BEC5'} ; % table data as cell array (2x3)
h.Data = MAC; % set the table data
h.ColumnName = {'A', 'B', 'C'}; % change the column name
% To change the second row
figure
h = uitable; % create uitabl
MAC={'6216', '23', 'BEC5'; '6216', '23', 'BEC5'} ; % table data as cell array (2x3)
h.Data = MAC; % set the table data
h.ColumnName = {'A', 'B', 'C'}; % change the column name
h.Data(2,:)= {'C1', 'C2', 'C3'};

카테고리

도움말 센터File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

태그

질문:

2021년 8월 31일

답변:

2021년 8월 31일

Community Treasure Hunt

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

Start Hunting!

Translated by