Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.2 - 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 > Variables > names

names

Scilab names syntax

Description

Names of variables and functions must begin with a letter or one of the following special characters '%', '_', '#', '!', '$', '?'.

Next characters may be letters or digits or any special character in '_', '#', '!', '$', '?'.

Upper and lower case letters are different.

Names may be as long as you want but only the first 24 characters are taken into account. If you exceed this limit you get a warning. Please note that this limitation will be fixed with the release of Scilab 6.

Examples

//Valid names
%eps
A1=123
#Color=8
My_Special_Color_Table=rand(10,3)
//Non valid names
//1A , b%, .C

// Long names
Try_to_use_a_long_name = 1 // long, but not too
Try_to_use_a_too_long_name = 1 // too long

// let we insert a second variable with similar long name...
Try_to_use_a_too_long_name2 = 2

// ... and see the value of first variable
disp(Try_to_use_a_too_long_name)
// Please note that this limitation will be fixed with the release of Scilab 6.
Report an issue
<< isglobal Variables predef >>

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:
Wed Apr 01 10:13:50 CEST 2015