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


sciargs

scilab コマンドライン引数

呼出し手順

args = sciargs()

説明

この関数は、Scilabコマンドライン引数を含む 文字列の列ベクトルを返します. argsの最初のエントリには, 実行された実行ファイルのパスが含まれます.

この関数はC言語のgetarg関数と等価です.

While the current Scilab session has been opened through the command

C:\Users\Me> C:\SCIdir\bin\scilab -nw -nb -noatomsautoload -args "Hello %USERNAME%" \"%cd%\"

we then get

a = sciargs()
--> a = sciargs()
 a  =
! c:\SCIdir\bin\WScilex-cli.exe !
! -nb                           !
! -noatomsautoload              !
! -args                         !
! Hello John                    !
! "C:\Users\Me"                 !

Let's note that in scilab -nw the "-nw" option is used by the scilab batch file to route the call to WScilex-cli.exe, without forwarding "-nw". Therefore, this one is not returned by sciargs().

参照

  • scilab — Scilabおよび関連ツールを起動するためのツール
  • getenv — 環境変数の値を取得
  • macrovar — 関数の変数

履歴

バージョン記述
6.0.0 A column is returned, instead of formerly a row.
Report an issue
<< recursionlimit Configuration ver >>

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 Mar 07 09:28:37 CET 2023