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

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 help >> Input/Output functions > input

input

ユーザ入力用のプロンプト

呼び出し手順

x = input(message [, "string"])

パラメータ

message

文字列

"string"

文字列 "string" ( "s"と短縮できます)

x

実数 ( "string"が呼び出し手順にある場合に文字列)

説明

input(message) は テキスト文字列でユーザプロンプトを定義し, キーボードからの入力を待ちます. 入力はevstrで評価される式とすることができます. 復改以外の入力が行われない場合, プロンプト input(message) は空の行列を返します.

2つの引数を指定してコールされた場合, 出力はキーボードで入力された式の文字列となります. 復改以外の入力が行われない場合, プロンプト input(message) は空白 " "を返します.

//x=input("How many iterations?")
//x=input("What is your name?","string")

参照

  • evstr — 式の評価
  • x_dialog — Dialog for interactive multi-lines input.
  • x_mdialog — Dialog for interactive vector/matrix input.
<< host Input/Output functions load >>

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:
Wed Oct 05 12:12:55 CEST 2011