Transform a scilab variable into a vector of double
vec = var2vec(var)
var: input parameter. Can be any types of Scilab objects.
vec: output parameter. A vector of real numbers.
var2vec / vec2var functions are used inside the interfacing functions of Scilab blocks to give the possibility to the user to handle Scilab objects with the real parameter (rpar) and with the discrete state register (z).