I have a mx3 matrix which is string format, I'm assigning this matrix by set(handles.listbox, 'String', matrix) into the listbox. How can I change space between the columns?
2 次查看(过去 30 天)
显示 更早的评论
matrix= [m,3] %string
set(handles.listbox, 'String', matrix)
in the listbox I wanna put more space between the columns, is that possible?
0 个评论
回答(1 个)
David Sanchez
2013-5-16
It would be clearer if you gave some extended code. If you have string data, you can add some blank spaces using horzcat():
my_str = 'xxx';
my_str2 = horzcat(my_str,' ');
Use this recursively on your matrix string elements
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!