当前位置:网站首页>3D drawing example
3D drawing example
2022-07-03 03:05:00 【Meteoraa】
Instance of a : Draw a mountain surface : The most basic command is mesh command , In addition, there is meshc command ( Basic contour lines are added ),meshz command ( The grid graph used to draw graphics and the grid graph of the zero plane ).
t=-4:0.1:4
[X,Y]=meshgrid(t)
Z=peaks(X,Y)
subplot(1,2,1)
mesh(X,Y,Z),hidden on
title(' Don't show grid ')

meshz command :
t=-4:0.1:4
[X,Y]=meshgrid(t)
Z=peaks(X,Y)
subplot(1,2,1)
meshz(X,Y,Z),hidden on
title(' Don't show grid ')

meshc command :
t=-4:0.1:4
[X,Y]=meshgrid(t)
Z=peaks(X,Y)
subplot(1,2,1)
meshc(X,Y,Z),hidden on
title(' Don't show grid ')

Real column II : Draw a function surface
x=-5:0.1:5
[X,Y]=meshgrid(x)
Z=cos(sqrt(X.^2+Y.^2))./sqrt(X.^2+Y.^2)
subplot(2,2,1)
plot3(X,Y,Z)
title('plot3')
subplot(2,2,2)
mesh(X,Y,Z)
title('mesh')
subplot(2,2,3)
meshc(X,Y,Z)
title('meshc')
subplot(2,2,4)
meshz(X,Y,Z)
title('meshz')
边栏推荐
- 从输入URL到页面展示这中间发生了什么?
- HW initial preparation
- Force freeing memory in PHP
- docker安装redis
- 后管中编辑与预览获取表单的值写法
- Thunderbolt Chrome extension caused the data returned by the server JS parsing page data exception
- 从C到Capable-----利用指针作为函数参数求字符串是否为回文字符
- MySql实战45讲【SQL查询和更新执行流程】
- Opengauss database development and debugging tool guide
- leetcode540
猜你喜欢
随机推荐
Sous - système I2C (IV): débogage I2C
A2L file parsing based on CAN bus (2)
The base value is too large (the error is marked as "08") [duplicate] - value too great for base (error token is'08') [duplicate]
销毁Session和清空指定的属性
Privatization lightweight continuous integration deployment scheme -- 01 environment configuration (Part 2)
leetcode540
Check log4j problems using stain analysis
疫情当头,作为Leader如何进行代码版本和需求开发管控?| 社区征文
Andwhere multiple or query ORM conditions in yii2
Update and return document in mongodb - update and return document in mongodb
Are there any recommended term life insurance products? I want to buy a term life insurance.
Super easy to use logzero
[C language] MD5 encryption for account password
Destroy the session and empty the specified attributes
Sqlserver row to column pivot
Xiaodi notes
Force deduction ----- the minimum path cost in the grid
Baidu map - surrounding search
Kubernetes cluster log and efk architecture log scheme
How to select the minimum and maximum values of columns in the data table- How to select min and max values of a column in a datatable?








