How to display string of matrix in one edit text?

I need display matrix which can contains Any number of vector in one edit text, how I can display it simply? Thanks.

4 Comments

What data type are the contents? If the matrix can contain a number of vectors, is the implication that the matrix is a cell matrix that contains other entries?
Viktor
Viktor on 31 Mar 2013
Edited: Viktor on 31 Mar 2013
Matrix contains strings of char, for example: a=['somename';'diffname';'something']; I know, this code for saving this matrix is wrong, but it is just for example.
a=['somename';'diffname';'something']; or a={'somename';'diffname';'something'}; ?
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

a={'somename';'diffname';'something'};
set(handles.EditBox, 'Max', 2, 'String', a);

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!