📄 trigplot.m
字号:
% trigplot Script to plot sin(x), cos(x), and sin(x)*cos(x)
x = linspace(0,2*pi); % generate data
y1 = sin(x);
y2 = cos(x);
y3 = y1.*y2; % y3 = sin(x)*cos(x)
plot(t,y1,'-',t,y2,':',t,y3,'--');
axis([0 2*pi -1.5 1.5])
legend('sin(\theta)','cos(\theta)','sin(\theta)*cos(\theta)')
xlabel('\theta (radians)','FontName','Times','FontSize',14)
title('Plot of simple trigonometric functions',...
'FontName','Times','FontSize',12)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -