menud2.m

来自「i was not knowing matlab in depth so i h」· M 代码 · 共 13 行

M
13
字号

x = MENU('Choose a number',1,2)

x1=input('enter a number');
y1=input('enter a number');
switch x
    case 1
        z=sum1(x1,y1)
    case 2
        z1=fact(x1)
    otherwise
disp('end of the program')
end

⌨️ 快捷键说明

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