Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2023.1.0 - English


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

Report an issue
<< getshell Configuration oldEmptyBehaviour >>

Copyright (c) 2022-2024 (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:
Mon May 22 12:37:04 CEST 2023