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

Change language to:
Français - 日本語 - Português - Русский

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

Scilab Help >> Scilab > Configuration > getversion

getversion

get scilab and modules version information

Syntax

version = getversion()
[version, opts] = getversion()
version_numbers = getversion('scilab')
versioninfo = getversion('scilab', 'string_info')
version_numbers = getversion('<module>')
versioninfo = getversion('<module>','string_info')

Arguments

version

a string

versioninfo

a string about version

version_numbers

an integer vector

ver(1) Major version

ver(2) Minor version

ver(3) Maintenance version

ver(4) GIT timestamp

opts

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

Description

[version, opts] = getversion() returns in version the Scilab version name and in opts 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, opts] = getversion()
COMPILER = opts(1)
ARCH = opts(2)
or(opts == 'modelicac')
or(opts == 'tk')
RELEASE_MODE = opts($-2)
RELEASE_DATE = opts($-1)
RELEASE_TIME = opts($)

version = getversion('scilab')
versionstr = getversion('scilab','string_info')
version = getversion('overloading')
versionstr = getversion('overloading','string_info')

See also

  • getmodules — returns list of modules installed in Scilab
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:
Tue Feb 25 08:49:18 CET 2020