test.m

来自「matlab7.0从入门到精通(光盘内容)」· M 代码 · 共 11 行

M
11
字号
function test()
r=input('Do you want more?Y/N[Y]:','s');
if isempty(r)
    r='Y';
end
if r=='Y'
    disp('you have selected the first character');
else
    disp('you have selected the second one');
end

⌨️ 快捷键说明

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