why wont uitable accept this text
显示 更早的评论
I have an array (using vertcat) that I want to insert into a uitable.
B =
R01C01
R01C01
R01C01
R01C01
R01C02
R01C02
R01C02
R02C01
Why does the following not work?
dataTest(:,1)=B;
% dataTest(:,2)=C;
% dataTest(:,3)=S;
% dataTest(:,4)=St;
% dataTest(:,5)=Ed;
set(handles.uitable2,'data',dataTest);
I have rem'd out the other columns, but eventually I will want these too, they are all integers.
2 个评论
Jan
2015-2-4
Please explain the details. What is the class of "B"? It could be a CHAR matrix or a cell string. What is the class of dataTest? What exactly does "not work" mean? Do you get an error message? If so, please take the time to copy it completely and insert it in your question. This is much more efficient than letting us guess the details. Thanks.
Jason
2015-2-4
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Dictionaries 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!