How to display string of matrix in one edit text?

1 view (last 30 days)
I need display matrix which can contains Any number of vector in one edit text, how I can display it simply? Thanks.
  4 Comments
Walter Roberson
Walter Roberson on 31 Mar 2013
a=['somename';'diffname';'something']; or a={'somename';'diffname';'something'}; ?
Viktor
Viktor on 31 Mar 2013
I tried both, but it didnt work, It is working if I use only 1 row but I want to display all what it is in a matrix.

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 31 Mar 2013
a={'somename';'diffname';'something'};
set(handles.EditBox, 'Max', 2, 'String', a);

More Answers (0)

Categories

Find more on Characters and Strings in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!