convert a variable parameter to 'string' in matlab

4 次查看(过去 30 天)
does anyone know how can a variable parameter convert to string? for example in under case, i parameter, (that, is a variable parameter) needs to be a variable string:
for i=1:10
lable=['input'''' i ''' ];
[r,'''i''']=xlsread(lable);
end
that i want to read input1 , input2,....,input10 and put them respectively r1,r2,..,r10

采纳的回答

Walter Roberson
Walter Roberson 2011-9-3
  10 个评论
Walter Roberson
Walter Roberson 2011-9-3
speaker.Speak(sprintf('finished checking input %d', i));

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 String Parsing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by