📄 exp2_14.m
字号:
clear
clc
close
t=-pi:0.1:pi;
trigname=input('Input trig functions name:')
switch trigname
case 'sin'
plot(t,sin(t))
case 'cos'
plot(t,cos(t))
otherwise
break %终止,跳出switch语句
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -