当前位置:网站首页>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')
边栏推荐
- 销毁Session和清空指定的属性
- [fluent] futurebuilder asynchronous programming (futurebuilder construction method | asyncsnapshot asynchronous calculation)
- Source code analysis | layout file loading process
- MySql实战45讲【事务隔离】
- Thunderbolt Chrome extension caused the data returned by the server JS parsing page data exception
- [C语言]给账号密码进行MD5加密
- 内存泄漏工具VLD安装及使用
- Two dimensional format array format index subscript continuity problem leads to return JSON format problem
- C language beginner level - pointer explanation - paoding jieniu chapter
- 从C到Capable-----利用指针作为函数参数求字符串是否为回文字符
猜你喜欢

I2C 子系統(四):I2C debug

A2L file parsing based on CAN bus (2)

你真的懂继电器吗?

MySql实战45讲【全局锁和表锁】
![MySQL practice 45 [global lock and table lock]](/img/23/fd58c185ae49ed6c04f1a696f10ff4.png)
MySQL practice 45 [global lock and table lock]

docker安装mysql

左连接,内连接

Add some hard dishes to the interview: how to improve throughput and timeliness in delayed task scenarios!

C语言初阶-指针详解-庖丁解牛篇

Nasvit: neural architecture search of efficient visual converter with gradient conflict perception hypernetwork training
随机推荐
JS finds all the parent nodes or child nodes under a node according to the tree structure
Deep learning: multi-layer perceptron and XOR problem (pytoch Implementation)
[principles of multithreading and high concurrency: 1_cpu multi-level cache model]
Use optimization | points that can be optimized in recyclerview
MySql实战45讲【全局锁和表锁】
Edit and preview in the back pipe to get the value writing method of the form
模糊查詢時報錯Parameter index out of range (1 > number of parameters, which is 0)
左连接,内连接
Anhui University | small target tracking: large-scale data sets and baselines
Tensorflow to pytorch notes; tf. gather_ Nd (x, y) to pytorch
Check log4j problems using stain analysis
tensor中的append应该如何实现
The difference between left value and right value in C language
函数栈帧的创建与销毁
MySQL practice 45 [SQL query and update execution process]
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?
SQL statement
Docker install redis
ASP. Net core 6 framework unveiling example demonstration [02]: application development based on routing, MVC and grpc
[flutter] example of asynchronous programming code between future and futurebuilder (futurebuilder constructor setting | handling flutter Chinese garbled | complete code example)