(~) Converts sym into string
The Scilab operator tilda (~) is overloaded for sym variables to give the representation of a symbol.
s=sym('x^2+3') deff('y=f(x)','y='+~s) f(5) H=hilbert_matrix(5) eval(~H)