convert a variable parameter to 'string' in matlab

4 visualizaciones (últimos 30 días)
mohammad
mohammad el 3 de Sept. de 2011
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

Respuesta aceptada

Walter Roberson
Walter Roberson el 3 de Sept. de 2011
  10 comentarios
Walter Roberson
Walter Roberson el 3 de Sept. de 2011
speaker.Speak(sprintf('finished checking input %d', i));
mohammad
mohammad el 3 de Sept. de 2011
great, perfect!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre String Parsing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by