当前位置:网站首页>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);

边栏推荐
- Machine learning related competition website
- Brief description of hystrix configuration
- 2021全球机器学习大会演讲稿
- Examples of financial tasks: real-time and offline approval of three scenarios and five optimizations of Apache dolphin scheduler in Xinwang bank
- 【uniapp】多种支付方式封装
- Learning Efficient Convolutional Networks Through Network Slimming
- The analysis, solution and development of the problem of router dropping frequently
- WCF introductory tutorial II
- NLP natural language processing - Introduction to machine learning and natural language processing (3)
- Sort: merge sort and quick sort
猜你喜欢

Wrong Addition

NFS service and Samba service deployment

机器学习相关比赛网站

Kdd2022 | uncover the mystery of Kwai short video recommendation re ranking, and recommend the new SOTA

Simulation of transfer function step response output of botu PLC first-order lag system (SCL)

基于Thinkphp的开源管理系统

Meta universe infrastructure: analysis of the advantages of Web 3.0 chain33

深度学习模型部署

Enterprise private network construction and operation and maintenance

2021全球机器学习大会演讲稿
随机推荐
JMeter performance test saves the results of each interface request to a file
Simulation of transfer function step response output of botu PLC first-order lag system (SCL)
DCN (deep cross network) Trilogy
Command line execution and test report generation of JMeter performance test
Leetcode 206. reverse chain list (2022.07.25)
The analysis, solution and development of the problem of router dropping frequently
JWT quick start
Machine learning related competition website
Sort: merge sort and quick sort
Wrong Addition
音视频学习(十)——ps流
Open source management system based on ThinkPHP
2019 ZTE touyue · model compression scheme
Database foundation
以太网交换安全
Comparison and difference between dependence and Association
Polymorphism, final and interface
总结软件测试岗的那些常见高频面试题
Now developers are beginning to do testing. Will there be no software testers in the future?
MMOE multi-objective modeling