没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
matlab 经典算法的程序——绘图
时间:2010-03-19 18:56:25作者:Admin点击:239
程序代码:
clear
clc
subplot(1,2,1);
t = 0:0.01:2*pi;
x = cos(2*t).*(cos(t).^2);
y = sin(2*t).*(sin(t).^2);
comet(x,y)
subplot(1,2,2);
t = -10*pi:pi/250:10*pi;
comet3((cos(2*t).^2).*sin(t),(sin(2*t).^2).*cos(t),t)
clear
clc
subplot(2,2,1)
contour3(peaks,50); %画出曲面在三度空间中的等高线
axis([-inf inf -inf inf -inf inf]);
subplot(2,2,2)
contour(peaks, 50); %画出曲面等高线在 XY 平面的投影
subplot(2,2,3)
t=linspace(0,20*pi, 501);
plot3(t.*sin(t), t.*cos(t), t);% 画出三度空间中的曲线
subplot(2,2,4)
plot3(t.*sin(t), t.*cos(t), t, t.*sin(t), t.*cos(t), -t);% 同时画出两条三
度空间中的曲线
资源评论
老帽爬新坡
- 粉丝: 82
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功