inputYN(inputstr)

inputYN is a wrapper of input.

現在この提出コンテンツをフォロー中です。

inputYN is a wrapper of input. Ask question with Y or N for the answer to
get true or false output, respectively. To interrupt, if you type
'keyboard' in response you can enter debugging mode.
TF = inputYN(inputstr)
inputstr String for a question. ' (Y/N):' will be added at the end.

TF A logical output. true is for Y or y, false is for N or n

EXAMPLE
if inputYN('Do yo want to proceed?')
dsip('OK')
else
dsip('cancelled')
end

% the above code prints the following in the command window
Do yo want to proceed? (Y/N):

See also
input

Written by
Kouichi.C.Nakamura, Ph.D.
Kyoto University
16 Nov 2015

引用

Kouichi Nakamura (2026). inputYN(inputstr) (https://jp.mathworks.com/matlabcentral/fileexchange/55585-inputyn-inputstr), MATLAB Central File Exchange. に取得済み.

カテゴリ

Help Center および MATLAB AnswersImage Segmentation and Analysis についてさらに検索

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.0.0.0

remove email