name ='x'; n=3; val=[45,67,34]; str = name +string(1:n)+'=val(' +string(1:n)+');' /// \sleftarrow{{\normalfont a string vector}} execstr(str); /// \sleftarrow{{\normalfont Scilab evaluation of \verb+str+ }} [x1,x2,x3] /// \sleftarrow{{\normalfont \verb+x1+, \verb+x2+ and \verb+x3+ are now defined}}