フィルターのクリア

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?

回答 (1 件)

David Sanchez
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
  1 件のコメント
sermet
sermet 2013 年 5 月 16 日
for example, string1=abc string2=[3 5] %string but matrix form string3=(string1, string2) I wanna put more space between abc, 3, 5 while I use set(handles.listbox, 'String', string3)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by