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 - 日本語 - Русский
Scilab Help >> Scilab > Variables > names

names

Naming rules for variables and functions

Description

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

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

Upper and lower case letters are different.

Multilingual UTF-8 characters are accepted.

Names may be as long as you want.

Examples

// Valid names
%eps
A1 = 123
#Color = 8
þæ_Ð = %pi

// Non valid names
//1A , b%, .C

// Long names
The_name_of_an_identifier_is_not_length_limited = 1

// A kilometric name:
name = strcat(part("a",ones(1,1000))); // 1000-char long
execstr(name+"=%pi; b ="+name);
b

History

VersionDescription
6.0
  • Scilab's parser no longer truncates names longer than 24 characters.
  • UTF-8 characters are now accepted in names of variables and fields.
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Feb 12 19:26:46 CET 2018