Combining a number and a string array (both columns) into a single column string array.
Mostra commenti meno recenti
How can the number array:
NUMM=linspace(1,10,10)'
and the string array:
STRR=repmat('X='10,1)
be combined to give a string array?
["X=1"
"X=2"
...
"X=10"]
Risposte (2)
David Hill
il 14 Feb 2022
s=string(strcat(STRR,num2str(NUMM)));
Categorie
Scopri di più su Characters and Strings in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!