How to make string from matrix?
Ältere Kommentare anzeigen
Hello everyone.. Can anoyne help me with this.. I have matrix with dimension 662x2 for example
y=[111 20;123 43;117 89;....] on so on
and form that matrix I need to make string but in every new row to put '#' so matrix y should be converted in string like this
yy='111 20#123 43#117 89#..' and so on
Thank you!
Akzeptierte Antwort
Weitere Antworten (1)
Star Strider
am 19 Dez. 2014
This works:
yy = sprintf('%d %d#', y');
1 Kommentar
Lolipop
am 19 Dez. 2014
Kategorien
Mehr zu Resizing and Reshaping Matrices 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!