Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - 日本語 -
Справка Scilab >> UI Data > editvar


Scilab variable editor





name (single string) of the variable name to edit. The variable must exist in the current Scilab environment. It must refer to a scalar, vector or matrix of

  • booleans (dense or sparse)
  • encoded integers (int8, uint8, int16, uint16, int32, uint32)
  • real or complex numbers (dense or sparse)
  • strings


editvar(varname) interactively edits the variable whose name is provided by varname.

Several variables can be edited in the same time. editvar(varname) must be called once for each of them. In the editor, a new tab is opened for each edited variable.

Predefined protected constants of supported types can't be edited: %pi, %e, %eps, %i, %inf, %nan, %f, %F, %t, %T, home, SCIHOME, SCI, WSCI, TMPDIR.

close editvar closes the open variable editor.

Editor's features

editvar has numerous features:

  • Matrix visualisation

  • Undo/redo capabilities

  • Cell editing

  • Expression evaluation. Please note that editvar will not store the expression. Only the value.

  • Advanced selection of elements (available with the CTRL key)

  • Plotting

  • Plotting of a subset

  • Variable format (short, shortE, long or longE formats)

  • Column / lines management (insert, delete, copy and paste, ... )

  • Full copy and paste between Libreoffice/Openoffice or Microsoft Excel and Scilab (both ways).

  • Renaming or copy of a variable


a = rand(10,10);
editvar a;
b = ['hello';'good bye'];
editvar b;
sp = sparse([1,2;4,5;3,10],[1,2,3])

See also

  • close — Закрывает графические окна, панели прогресса или состояния, браузер справки, xcos, браузер переменных или редактор.
  • browsevar — браузер переменных Scilab
  • whos — список переменных в длинной форме
  • edit — функция редактирования
  • ged — Scilab Graphic Editor
  • tree_show — Отображает в виде дерева содержимое list, tlist, mlist, cell-массивы или массивы структур, Xcos block
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Jan 03 14:40:12 CET 2022