⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 trigplot.m

📁 这是《Numerical Methods with MATLAB: Implementation and Application》一书的配书程序(Matlab)
💻 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 + -