Matlab三维绘图

Matlab 3D plot

matlab最基础的画图知识(周一分享十五)(1)

分享兴趣,传播快乐,增长见闻,留下美好。

亲爱的您,

这里是LearingYard学苑!

今天小编为大家带来Matlab三维绘图。

欢迎您的用心访问!

本期推文阅读时长大约5分钟,请您耐心阅读。

Share interest, spread happiness,

increase knowledge, and leave beautiful.

Dear you,

this is the LearingYard Academy!

Today, the editor brings three-dimensional drawing in Matlab.

Welcome your visit!

The reading time of this tweet is about 5 minutes, please read it with patience.

一、三维绘图基本语法

3D Drawing Basic Syntax

1.plot3——三维点或线图

plot3 - 3D point or line plot

2.bar3——绘制三维条形图

bar3 - draws a 3D bar chart

3.histogram2——二元直方图

histogram2 - binary histogram

4.pie3——三维饼图

pie3 - 3D pie chart

5.stem3——三维离散序列数据

stem3 - 3D discrete sequence data

6.scatter3——三维散点图

scatter3 - 3D scatter plot

二、示例

Example

1.绘制多个线条

Draw multiple lines

代码如下图所示:

The code is shown below:

matlab最基础的画图知识(周一分享十五)(2)

运行结果如下图所示:

The running result is shown in the following figure:

matlab最基础的画图知识(周一分享十五)(3)

2.指定等间距刻度单位和轴标签

Specify equally spaced tick units and axis labels

代码如下图所示:

The code is shown below:

matlab最基础的画图知识(周一分享十五)(4)

运行结果如下图所示:

The running result is shown in the following figure:

matlab最基础的画图知识(周一分享十五)(5)

3.绘制三维条形图

Plot a 3D Bar Chart

代码如下图所示:

The code is shown below:

matlab最基础的画图知识(周一分享十五)(6)

运行结果如下图所示:

The running result is shown in the following figure:

matlab最基础的画图知识(周一分享十五)(7)

4.绘制二维直方图

Plot a 2D histogram

代码如下图所示:

The code is shown below:

matlab最基础的画图知识(周一分享十五)(8)

运行结果如下图所示:

The running result is shown in the following figure:

matlab最基础的画图知识(周一分享十五)(9)

5.绘制三维饼图

Draw a 3D Pie Chart

代码如下图所示:

The code is shown below:

matlab最基础的画图知识(周一分享十五)(10)

运行结果如下图所示:

The running result is shown in the following figure:

matlab最基础的画图知识(周一分享十五)(11)

6.绘制三维针状图

Draw a 3D needle diagram

代码如下图所示:

The code is shown below:

matlab最基础的画图知识(周一分享十五)(12)

运行结果如下图所示:

The running result is shown in the following figure:

matlab最基础的画图知识(周一分享十五)(13)

7.绘制三维散点图

Plot a 3D Scatter Plot

代码如下图所示:

The code is shown below:

matlab最基础的画图知识(周一分享十五)(14)

运行结果如下图所示:

The running result is shown in the following figure:

matlab最基础的画图知识(周一分享十五)(15)

今天的分享就到这里了。

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

欢迎给我们留言,

让我们相约明天。

祝您今天过得开心快乐!

That's it for today's sharing.

If you have a unique idea about today’s article,

welcome to leave us a message,

let us meet tomorrow.

I wish you a happy day today!

参考资料:谷歌翻译、百度、哔哩哔哩

本文由LearningYard学苑原创,如有侵权请在后台留言!

文字|Zheng

排版|Zheng

审核|任务达人

,