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

📄 ch401.m

📁 胡广书例题matlab源程序,每章节均有,比较精彩
💻 M
字号:
syms x
subplot(4,2,1)
x1=0:0.1:2*pi;
y1=sin(x1);
plot(x1,y1,'*')   %画sin(x)的散点图
subplot(4,2,2)
fplot('sin(x)',[0,2*pi])    %画sin(x)的连续图
subplot(4,2,3)
x2=0:0.1:2*pi;
y2=cos(3*x2)+sin(x2);
plot(x2,y2,'g +')   %画cos(3x)+sin(x)的散点图
subplot(4,2,4)
fplot('cos(3*x)+sin(x)',[0,2*pi])    %画cos(3x)+sin(x)的连续图
subplot(4,2,5)
x3=-2:0.1:2;
y3=x3.^2+log(3-x3);
plot(x3,y3,'ro')     %画x^3+log(3-x)的散点图 
subplot(4,2,6)
fplot('x^2+log(3-x)',[-2,2])         %画x^3+log(3-x)的连续图 
subplot(4,2,7)
x4=-pi:0.1:pi;
y4=sin(x4).^3+cos(x4).^3;
plot(x4,y4,'mx')     %画sin(x)^3+cos(x)^3的散点图 
subplot(4,2,8)
fplot('sin(x)^3+cos(x)^3',[-pi,pi])   %画sin(x)^3+cos(x)^3的连续图 

⌨️ 快捷键说明

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