当前位置:网站首页>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')
边栏推荐
- SQL server queries the table structure of the specified table
- Strategy application of Dameng database
- Segmentation fault occurs during VFORK execution
- HTB-Devel
- 【富瀚6630编码存录像,用rtsp服务器及时间戳同步实现vlc观看录像】
- Distributed transaction
- 一文带你了解 ZigBee
- SQL statement
- Process the dataset and use labelencoder to convert all IDs to start from 0
- Pytest (6) -fixture (Firmware)
猜你喜欢

左连接,内连接

Check log4j problems using stain analysis
![[principles of multithreading and high concurrency: 1_cpu multi-level cache model]](/img/c7/6b5ab4ff7379bfccff7cdbb358ff8f.jpg)
[principles of multithreading and high concurrency: 1_cpu multi-level cache model]

TCP handshake three times and wave four times. Why does TCP need handshake three times and wave four times? TCP connection establishes a failure processing mechanism

vfork执行时出现Segmentation fault

超好用的日志库 logzero

一文带你了解 ZigBee

sql server数据库添加 mdf数据库文件,遇到的报错

Sqlserver row to column pivot
![[error record] the parameter 'can't have a value of' null 'because of its type, but the im](/img/1c/46d951e2d0193999f35f14d18a2de0.jpg)
[error record] the parameter 'can't have a value of' null 'because of its type, but the im
随机推荐
Tensorflow to pytorch notes; tf. gather_ Nd (x, y) to pytorch
[shutter] monitor the transparency gradient of the scrolling action control component (remove the blank of the top status bar | frame layout component | transparency component | monitor the scrolling
SQL statement
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?
C#通用接口调用
Anhui University | small target tracking: large-scale data sets and baselines
ComponentScan和ComponentScans的区别
Find the storage address of the elements in the two-dimensional array
Kubernetes family container housekeeper pod online Q & A?
Deep Reinforcement Learning for Intelligent Transportation Systems: A Survey 论文阅读笔记
Edit and preview in the back pipe to get the value writing method of the form
Didi programmers are despised by relatives: an annual salary of 800000 is not as good as two teachers
How to use asp Net MVC identity 2 change password authentication- How To Change Password Validation in ASP. Net MVC Identity 2?
二维数组中的元素求其存储地址
I2C 子系统(二):I3C spec
Use cve-2021-43893 to delete files on the domain controller
docker安装mysql
The solution of "the required function is not supported" in win10 remote desktop connection is to modify the Registry [easy to understand]
Reset or clear NET MemoryStream - Reset or Clear . NET MemoryStream
MySQL Real combat 45 [SQL query and Update Execution Process]