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 Kommentare

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 am 31 Mär. 2013
Bearbeitet: Viktor am 31 Mär. 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'}; ?
Viktor
Viktor am 31 Mär. 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.

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 31 Mär. 2013

0 Stimmen

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

Weitere Antworten (0)

Kategorien

Mehr zu Characters and Strings finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by