Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes

Change language to:
English - 日本語 - Português

Please note that the recommended version of Scilab is 6.1.1. This page might be outdated.
See the recommended documentation of this function

Aide Scilab >> Xcos > Fonctions utilitaires Scilab > var2vec

var2vec

Transform a scilab variable in a vector of double

Calling Sequence

[vec]=var2vec(var)

Module

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)

Arguments

  • var : Input parameter. Can be any types of Scilab objects.

  • vec : Output parameter. A vector of real numbers.

Example

-->a=list("cos",[1.1,2])
a  = 
a(1)
cos   
a(2)
1.1    2.  
-->b=var2vec(a)         
b  =
4.244-314  
1.273-313  
8.488-314  
2.122-314  
4.941-324  
8.488-314  
5.093-313  
2.122-314  
2.122-314  
9.881-324  
1.1        
2.
<< scicos_debug Fonctions utilitaires Scilab vec2var >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Oct 05 12:11:03 CEST 2011