当前位置:网站首页>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')
边栏推荐
猜你喜欢
Docker install MySQL
I2C subsystem (I): I2C spec
ASP. Net core 6 framework unveiling example demonstration [02]: application development based on routing, MVC and grpc
内存泄漏工具VLD安装及使用
sql server数据库添加 mdf数据库文件,遇到的报错
Add automatic model generation function to hade
What is the way out for children from poor families?
Sqlserver row to column pivot
idea 加载不了应用市场解决办法(亲测)
[flutter] example of asynchronous programming code between future and futurebuilder (futurebuilder constructor setting | handling flutter Chinese garbled | complete code example)
随机推荐
[C语言]给账号密码进行MD5加密
Wechat - developed by wechat official account Net core access
Force deduction ----- the minimum path cost in the grid
tensorflow转pytorch笔记;tf.gather_nd(x,y)转pytorch
Deep learning: multi-layer perceptron and XOR problem (pytoch Implementation)
Three. JS local environment setup
疫情当头,作为Leader如何进行代码版本和需求开发管控?| 社区征文
Update and return document in mongodb - update and return document in mongodb
Didi programmers are despised by relatives: an annual salary of 800000 is not as good as two teachers
JMeter performance test JDBC request (query database to obtain database data) use "suggestions collection"
Check log4j problems using stain analysis
[fluent] future asynchronous programming (introduction | then method | exception capture | async, await keywords | whencomplete method | timeout method)
Last update time of all sqlserver tables
超好用的日志库 logzero
Tensorflow to pytorch notes; tf. gather_ Nd (x, y) to pytorch
Privatization lightweight continuous integration deployment scheme -- 01 environment configuration (Part 2)
HTB-Devel
Cron表达式介绍
MySql實戰45講【SQL查詢和更新執行流程】
MySQL practice 45 [SQL query and update execution process]