<< standard_outputs Fonctions utilitaires Scilab vec2var >>

Scilab Help >> Xcos > Fonctions utilitaires Scilab > var2vec

var2vec

Transform a scilab variable into a vector of double

Syntax

vec = var2vec(var)

Arguments

Description

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).

vec = var2vec(var)

Example

-->a = list("cos", [1.1 2])
a  =
a(1)
cos
a(2)
1.1    2.
-->b = var2vec(a)
b  =
15.
2.
10.
2.
1.
1.
1.
0.
1.
2.
1.
2.
0.
1.1
2.

See also


Report an issue
<< standard_outputs Fonctions utilitaires Scilab vec2var >>