string型なら足し算でいけます
str = ("Sample"+char('0'+(0:60)'));
str(1:20)=str(1:20)+"normal";
str(21:40) = str(21:40)+"right";
str(41:60) = str(41:60)+"left";
str(1:5)
str(21:25)
str(41:45)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!