Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Português - 日本語 - Русский
Aide de Scilab >> Scilab > Configuration > getversion

getversion

get scilab and modules version information

Syntax

[version, options] = getversion()
[COMPILER, ARCH, RELEASE_MODE, RELEASE_DATE, RELEASE_TIME] = (options(1), opt(2), options($-2), options($-1), options($))
version_numbers = getversion('scilab')
version_numbers = getversion('<module>')
version = getversion('<module>','string_info')

Arguments

version

a string about version. Example: "scilab-6.1.0"

version_numbers

an integer vector

version_numbers(1) Major version

version_numbers(2) Minor version

version_numbers(3) Maintenance version

version_numbers(4) GIT timestamp

options

a vector of string: [compiler, architecture,[tk, modelicac, ] release_mode, release_date, release_time]

Description

[version, options] = getversion() returns in version the Scilab version name and in options build options which can be used to determine if scilab has been build with tk or modelicac and gives release date and time.

[tk, modelicac, atlas,] are optional.

compiler: returns compiler used to build scilab ('GCC', 'VC++', 'PGI', 'ICC', 'SUN', 'UKN' unknown)

architecture: 'x86' or 'x64'.

tk: 'tk' if tcl/tk is enabled.

modelicac: 'modelicac' if modelica compiler is distributed with scilab/xcos.

Examples

getversion()
[version, options] = getversion()
[COMPILER, ARCH, RELEASE_MODE, RELEASE_DATE, RELEASE_TIME] = (options(1), opt(2), options($-2), options($-1), options($))
or(options == 'modelicac')
or(options == 'tk')

numbers = getversion('scilab')
version = getversion('scilab','string_info')

See also

Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Jul 20 11:19:13 CEST 2021