inputYN(inputstr)

버전 1.0.0.0 (1.07 KB) 작성자: Kouichi Nakamura
inputYN is a wrapper of input.
다운로드 수: 18
업데이트 날짜: 2016/2/22

라이선스 보기

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 (2024). inputYN(inputstr) (https://www.mathworks.com/matlabcentral/fileexchange/55585-inputyn-inputstr), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2015b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Image Segmentation and Analysis에 대해 자세히 알아보기
태그 태그 추가

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

remove email