convert a variable parameter to 'string' in matlab

조회 수: 6 (최근 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 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