Filter löschen
Filter löschen

How to place data in UItable second row

4 Ansichten (letzte 30 Tage)
dmfwlansejr
dmfwlansejr am 31 Aug. 2021
Beantwortet: Chunru am 31 Aug. 2021
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

Antworten (1)

Chunru
Chunru am 31 Aug. 2021
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'};

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by