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.
이전 댓글 표시
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
2013년 5월 18일
a=[1 2 3;4 5 6;7 8 9] ;
b=[1;2;3];
cellArray=num2str([a,b])
댓글 수: 3
Azzi Abdelmalek
2013년 5월 18일
편집: Azzi Abdelmalek
2013년 5월 18일
or
a=[1 2 3;4 5 6;7 8 9]
b=[1;2;3]
CellArray=sprintf('%d %d %d %d\n',[a b])
sermet
2013년 5월 18일
Azzi Abdelmalek
2013년 5월 18일
What does that mean?
카테고리
도움말 센터 및 File Exchange에서 String Parsing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!