Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.0 - 日本語

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

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

Scilabヘルプ >> UI Data > editvar

editvar

Scilab variable editor

Syntax

editvar("close")
editvar(varname)

Arguments

varname

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

Description

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.

editvar("close") or editvar close closes the open variables 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

Examples

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

See also

  • browsevar — Scilab変数ブラウザ
  • whos — 長い形式で変数のリストを得る
  • edit — 関数を編集
  • ged — Scilabグラフィックエディタ
  • tree_show — Displays a tree view of a list, tlist, mlist, cell or structure array, Xcos block

History

VersionDescription
6.1.0 editvar("close") added
Report an issue
<< closeEditvar UI Data filebrowser >>

Copyright (c) 2022-2023 (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:53:30 CET 2020