test_input.m

来自「matlab源代码,适用于开发研究,带来很好的学习效果.」· M 代码 · 共 10 行

M
10
字号
function test_input()
reply = input('Do you want more? Y/N [Y]: ','s');
if isempty(reply)
    reply = 'Y';
end
if reply=='Y'
    disp('you have selected more information');
else
    disp('you have selected the end');
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?