Assign to cell elements with both string and number?
Ältere Kommentare anzeigen
Hi ,
Could someone tell me how to assign to cell element with both string and number? For example with my simple code:
clc
close all
clear all
text={'STT'}
x=1:10
The result I want to get is
text{'STT';'1';'2';'3';...;'10'}
Thank you.
2 Kommentare
Andrew Newell
am 3 Dez. 2014
I presume you mean
text = {'STT';'1';'2';'3';...;'10'}
?
Khanh
am 3 Dez. 2014
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!