- Scilab help
- API Scilab
- Scilab Gateway API
- How to
- CheckColumn
- CheckDimProp
- CheckDims
- CheckLength
- CheckLhs
- CheckRhs
- CheckRow
- CheckSameDims
- CheckScalar
- CheckSquare
- CheckVector
- CreateListVarFrom
- CreateListVarFromPtr
- CreateVar
- FindOpt
- FirstOpt
- GetListRhsVar
- GetRhsVar
- GetType
- IsOpt
- Lhs
- LhsVar
- NumOpt
- OverLoad
- Rhs
- Scierror
- Scilab C Types
- get_optionals
- istk
- sci_types
- sciprint
- stk
Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
However, this page did not exist in the previous stable version.
CreateVar
a C gateway function which allows to create a new Scilab parameter
Calling Sequence
CreateVar(StackPos, Type, &m_rows, &n_cols, &l_stack_pos);
Arguments
- StackPos
- The rank of the parameter to be created (input argument) 
- Type
- The Scilab C Type of the parameter to be created (input argument). - STRING_DATATYPE "c" 
- MATRIX_OF_STRING_DATATYPE "S" 
- MATRIX_OF_DOUBLE_DATATYPE "d" 
- MATRIX_OF_RATIONAL_DATATYPE "r" 
- MATRIX_OF_VARIABLE_SIZE_INTEGER_DATATYPE "I" 
- MATRIX_OF_INTEGER_DATATYPE "i" 
- MATRIX_OF_BOOLEAN_DATATYPE "b" 
- MATRIX_OF_COMPLEX_DATATYPE "z" 
- SPARSE_MATRIX_DATATYPE "s" 
- TYPED_LIST_DATATYPE "t" 
- MATRIX_ORIENTED_TYPED_LIST_DATATYPE "m" 
- SCILAB_POINTER_DATATYPE "p" 
- GRAPHICAL_HANDLE_DATATYPE "h" 
- EXTERNAL_DATATYPE "f" 
- MATRIX_OF_POLYNOMIAL_DATATYPE "x" 
 
- m_rows
- the number of lines of the matrix to be created (input argument) 
- n_cols
- the number of columns of the matrix to be created (input argument) 
- l_stack_pos
- the position in the Scilab memory of the created parameter (output argument) 
Description
A C gateway function which allows to create a new Scilab parameter
WARNING: This API is deprecated from Scilab 5.2.0 and is going to be removed with Scilab 6.0. Please use API Scilab (the new Scilab API).
Examples
See Also
- Scilab C Type — the C types available in a C gateway
- istk — Return a pointer to an integer to access data stored at a given position in the Scilab memory
- LhsVar — a C gateway function which specifies which parameters created inside the C gateway will be returned as an output argument into Scilab.
| << CreateListVarFromPtr | Scilab Gateway API | FindOpt >> |