i=3; text = ['function [y]=plus'+string(i)+'(x)'; /// \sleftarrow{{\normalfont build a string vector}} 'y = x +' + string(i); 'endfunction'] execstr(text); /// \sleftarrow{{\normalfont Scilab evaluation of the built string }} plus3(4) /// \sleftarrow{{\normalfont using the newly created \verb+plus3+ {function} }}