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

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ヘルプ >> Script editor > edit

edit

関数を編集

呼出し手順

edit functionname
edit(functionname, linenumber)
edit functionname linenumber

引数

functionname

文字列

linenumber

整数

説明

functionname が定義済みの Scilab関数の名前の場合, edit(functionname) は 関連するファイル functionname.sci を オープンします.

functionnameが未定義のScilab関数の名前の場合, edit はカレントのディレクトリに functionname.sciファイルを作成します.

functionname が有効なマクロまたは 関数名でない場合, edit(functionname)functionnameに等しいファイル名を有する ファイルをオープンします.

linenumber が指定された場合, ファイルはファイル名自体と同じ名前のマクロの 定義を基準としてこの行でオープンします. マクロ定義が見つからない場合, ファイルが指定したlinenumber行目で オープンされます.

//この関数へのテキストを指定したエディタをオープン
edit edit

//新しい関数に関してエディタをオープン in TMPDIR
edit myfunction

// Opens or creates the file foo.sce in the current working directory
edit foo.sce

//SCIHOMEディレクトリのファイルscilab.iniをオープン
edit(SCIHOME+"/scilab.ini")

// test_run()の定義を基準として ファイルtest_run.sciの123行目をオープン
edit('test_run', 123)

// Same thing with an inline syntax (line number as text):
edit test_run 123

参照

  • editor — 設定で定義されたテキストエディタをコールする
  • scinotes — Scinotes: Scilab組込みテキストエディタ
  • manedit — editing a manual item
  • names — Scilab 名前の構文
  • editvar — Scilab variable editor
  • ged — Scilabグラフィックエディタ

履歴

バージョン記述
5.3.1 New linenumber input option.
6.1.0 linenumber can now be of type text as "23".
Report an issue
<< Script editor Script editor edit_error >>

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:
Mon Jan 03 14:38:07 CET 2022