I have 2 strings which matrix format (cellArray=[a,b], when I use set(handles.listbox, 'String', cellArray) I wanna increase column spaces between a,and b in GUI.

1 次查看(过去 30 天)
for example,
a=[1 2 3;4 5 6;7 8 9] % size(a)=3x3
a=num2str(a)
b=[1;2;3] % size(b)=3x1
b=num2str(b)
cellArray=[a,b]
set(handles.listbox, 'String', cellArray)
%how can I add more spaces between the columns of the cellArray in GUI environment?

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2013-5-18
a=[1 2 3;4 5 6;7 8 9] ;
b=[1;2;3];
cellArray=num2str([a,b])
  3 个评论

请先登录,再进行评论。

类别

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