当前位置:网站首页>Matlab drawing black spots on two / three-dimensional drawings
Matlab drawing black spots on two / three-dimensional drawings
2022-07-26 07:42:00 【HappyLaber】
Recommended reading :https://happylaber.netlify.app/
To use this function, you need to install Climate Data Toolbox
A two-dimensional
1. Draw a grid (pcolor)
[X,Y,Z] = peaks(1000);
pcolor(X,Y,Z)
shading interp
hold on
2. Create a mask
mask = Z>2.5;
3. Draw black dots
color Attribute controls the color of the point , Default is black ;density Attribute controls the density of points , The default is 100;marker Symbol of attribute control point , The default is point ;markersize Attribute controls the size of the point , The default is 6.
stipple(X,Y,mask,'color',[0,0,0],'density',100,'marker','.','markersize',10);

The three dimensional
1. 3d drawing (surf)
[X,Y,Z] = peaks(1000);
surf(X,Y,Z)
shading interp
hold on
2. Draw black dots
h=stipple(X,Y,mask,'color',[0,0,0],'density',100,'marker','.','markersize',6);
3. Change handle h The data of
x=X(mask);
y=Y(mask);
z=Z(mask);
h.XData=x(1:500:end);
h.YData=y(1:500:end);
h.ZData=z(1:500:end);

边栏推荐
- 排序:归并排序和快速排序
- OVSDB
- ARIMA model for time series analysis and prediction
- 【uniapp】多种支付方式封装
- 3.0.0 alpha blockbuster release! Nine new functions and new UI unlock new capabilities of dispatching system
- Parameterization of JMeter performance test using CSV file
- 系统架构&微服务
- 依赖和关联的对比和区别
- 现在开发人员都开始做测试了,是不是以后就没有软件测试人员了?
- Common templates for web development
猜你喜欢

System architecture & microservices

:app:checkDebugAarMetadata 2 issues were found when checking AAR metadata: 2 issues were found when

Apache dolphin scheduler 2.x nanny level source code analysis, China Mobile engineers uncover the whole process of service scheduling and start

Taishan office lecture: word error about inconsistent values of page margins

Crawler - > tpimgspider

FTP service

一文掌握mysql数据库审计特点、实现方案及审计插件部署教程

如何保证缓存和数据库的双写一致性?

深度学习模型部署

现在开发人员都开始做测试了,是不是以后就没有软件测试人员了?
随机推荐
程序环境和预处理
[200 opencv routines] 231. Gray level co-occurrence matrix (GLCM) for feature description
DADNN: Multi-Scene CTR Prediction via Domain-Aware Deep Neural Network
Interview question set
Lambda and stream
Next item recommendations in short sessions
JMeter performance test saves the results of each interface request to a file
Wrong Addition
记一次路由器频繁掉线问题的分析、解决与发展
音视频学习(十)——ps流
总结软件测试岗的那些常见高频面试题
ShardingSphere数据分片
数据库基础
【每日一题】919. 完全二叉树插入器
Jmeter性能测试之使用存储响应内容到文件监听器
Open source management system based on ThinkPHP
What is bloom filter in redis series?
Web page basic label
Model pruning 3: learning structured sparsity in deep neural networks
Apache dolphin scheduler 2.x nanny level source code analysis, China Mobile engineers uncover the whole process of service scheduling and start