How to set only a row of data in a table in GUI?

1 次查看(过去 30 天)
I want to set the data of a certain row and leave rest of the table blank. How can I realize that? Thanks a lot!

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2013-10-16
A=[1 2 3;4 5 6;7 8 9];
% If your table contains 8 rows, create a new array with 8 rows
B=[num2cell(A);cell(5,3)]
f=figure,
t=uitable(f,'data',B)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Tables 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by