Matlab 三维图制作教程
Matlab 3D drawing tutorial
分享兴趣,传播快乐,
增长见闻,留下美好!
亲爱的您,这里是LearningYard学苑。
今天小编为大家带来Matlab三维图制作教程,
一起来看看吧!
Share interest, spread happiness,
increase knowledge, and stay beautiful!
Dear you, this is LearningYard Academy.
Today, the editor brings you the Matlab 3D drawing tutorial,
let’s take a look!
普通三维图制作
Ordinary 3D drawing production
进行设置
t=0:pi/66:16*pi;
plot3(sin(t),cos(t),t) 表示三维立体指令
Set up
t=0:pi/66:16*pi;
plot3(sin(t),cos(t),t) represents the three-dimensional command
xlabel(&39;sin(t)&39;)
ylabel(&39;cos(t)&39;)
zlabel(&39;t&39;) 表示设置各项标签
grid on 表示在图后面生成网格线
xlabel(&39;sin(t)&39;)
ylabel(&39;cos(t)&39;)
zlabel(&39;t&39;) means to set various labels
grid on means to generate grid lines behind the graph
axis square
起到美化限制作用,显得更加立体
axis square
Play a beautifying and restrictive role, appear more three-dimensional
双峰函数绘图制作
Drawing of bimodal function
Matlab还可以制作出很多奇妙的图形,这里再带大家学习一下双峰函数绘图的制作。
Matlab can also produce a lot of wonderful graphics, here we will take you to learn about the production of bimodal function drawing.
进行设置
[x,y,z]=peaks(45);
mesh(x,y,z)
grid
Set up
[x,y,z]=peaks(45);
mesh(x,y,z)
grid
本期的分享就到这里,
如果您对今天的文章有独特的想法,
欢迎给我们留言,让我们相约明天,
祝您今天过得开心快乐!
This issue of sharing is here.
If you have a unique idea about today’s article, please leave us a message,
let us meet tomorrow, and wish you a happy day today!