YESNO

버전 1.0.0.0 (1.65 KB) 작성자: Jos (10584)
let user choose between yes or no
다운로드 수: 2.3K
업데이트 날짜: 2008/4/29

라이선스 보기

YESNO - returns true for y-key, false for n-key

ISYES = YESNO waits for a keypress of either the Y-key or N-key and returns a logical one (true) if the Y-key was pressed, and a logical zero (false) if the N-key was pressed.

Example:
fprintf('\nHere is a number for you: %5.0f', 1000*rand)
while(1)
fprintf('\nDo you want another number (y/n)? ') ;
if yesno, fprintf(' %5.0f', 1000*rand) ;
else fprintf('\nBye!\n') ;
break
end
end

version 1.0 april 2008

인용 양식

Jos (10584) (2025). YESNO (https://kr.mathworks.com/matlabcentral/fileexchange/19740-yesno), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R13
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Numeric Types에 대해 자세히 알아보기
도움

도움 받은 파일: getkey

도움 준 파일: Islanding Detection In Distributed Generation

Community Treasure Hunt

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

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