seperation columns when one string in number other is txt.
Ältere Kommentare anzeigen
names=['john'; 'ravi'; 'mary'; 'xiao']
howdy=char('10', '20', '30')
result=[howdy(2,:) names(3,:)]
result=20mary
I wanna create "20 marry" with spaces between columns, how can I add the spaces between the columns?
Akzeptierte Antwort
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!