Assign to cell elements with both string and number?
显示 更早的评论
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 个评论
Andrew Newell
2014-12-3
I presume you mean
text = {'STT';'1';'2';'3';...;'10'}
?
Khanh
2014-12-3
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!