matlab三维立体图代码(三维图制作教程)

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!

matlab三维立体图代码(三维图制作教程)(1)

普通三维图制作

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

matlab三维立体图代码(三维图制作教程)(2)

xlabel('sin(t)')

ylabel('cos(t)')

zlabel('t') 表示设置各项标签

grid on 表示在图后面生成网格线

xlabel('sin(t)')

ylabel('cos(t)')

zlabel('t') means to set various labels

grid on means to generate grid lines behind the graph

matlab三维立体图代码(三维图制作教程)(3)

axis square

起到美化限制作用,显得更加立体

axis square

Play a beautifying and restrictive role, appear more three-dimensional

matlab三维立体图代码(三维图制作教程)(4)

双峰函数绘图制作

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

matlab三维立体图代码(三维图制作教程)(5)

本期的分享就到这里,

如果您对今天的文章有独特的想法,

欢迎给我们留言,让我们相约明天,

祝您今天过得开心快乐!

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!

,

免责声明:本文仅代表文章作者的个人观点,与本站无关。其原创性、真实性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容文字的真实性、完整性和原创性本站不作任何保证或承诺,请读者仅作参考,并自行核实相关内容。文章投诉邮箱:anhduc.ph@yahoo.com

    分享
    投诉
    首页