当前位置:网站首页>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')
边栏推荐
- Can netstat still play like this?
- Distributed transaction
- Le processus de connexion mysql avec docker
- Can netstat still play like this?
- C语言中左值和右值的区别
- [fluent] future asynchronous programming (introduction | then method | exception capture | async, await keywords | whencomplete method | timeout method)
- tensor中的append应该如何实现
- How to use asp Net MVC identity 2 change password authentication- How To Change Password Validation in ASP. Net MVC Identity 2?
- Cron表达式介绍
- Anhui University | small target tracking: large-scale data sets and baselines
猜你喜欢

Linear rectification function relu and its variants in deep learning activation function

Check log4j problems using stain analysis

超好用的日志库 logzero

力扣------网格中的最小路径代价

C language beginner level - pointer explanation - paoding jieniu chapter

Sqlserver row to column pivot

Anhui University | small target tracking: large-scale data sets and baselines

Creation and destruction of function stack frame

敏捷认证(Professional Scrum Master)模拟练习题-2

I2C 子系統(四):I2C debug
随机推荐
Anhui University | small target tracking: large-scale data sets and baselines
Use of check boxes: select all, deselect all, and select some
超好用的日志库 logzero
Add some hard dishes to the interview: how to improve throughput and timeliness in delayed task scenarios!
yii2 中andWhere多个or查询 orm条件
I2C 子系统(三):I2C Driver
Linear rectification function relu and its variants in deep learning activation function
Xiaodi notes
js根据树结构查找某个节点的下面的所有父节点或者子节点
Left connection, inner connection
力扣------网格中的最小路径代价
Update and return document in mongodb - update and return document in mongodb
分布式事务
SQL statement
后管中编辑与预览获取表单的值写法
How to return ordered keys after counter counts the quantity
Deep learning: multi-layer perceptron and XOR problem (pytoch Implementation)
Pytest (6) -fixture (Firmware)
Can netstat still play like this?
Sqlserver row to column pivot