convert a variable parameter to 'string' in matlab

9 ビュー (過去 30 日間)
mohammad
mohammad 2011 年 9 月 3 日
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));
mohammad
mohammad 2011 年 9 月 3 日
great, perfect!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeString Parsing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by