inputYN(inputstr)

inputYN is a wrapper of input.
18 Descargas
Actualizado 22 feb 2016

Ver licencia

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

Citar como

Kouichi Nakamura (2024). inputYN(inputstr) (https://www.mathworks.com/matlabcentral/fileexchange/55585-inputyn-inputstr), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2015b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Image Segmentation and Analysis en Help Center y MATLAB Answers.
Etiquetas Añadir etiquetas

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0

remove email