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

Please note that the recommended version of Scilab is 6.0.1. 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.
Scilab Enterprises
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