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

边栏推荐
- OVS underlying implementation principle
- OVSDB
- Open source management system based on ThinkPHP
- Common templates for web development
- WCF introductory tutorial II
- Dynamic performance view overview
- China Unicom transformed the Apache dolphin scheduler resource center to realize the one-stop access of cross cluster call and data script of billing environment
- 在线问题反馈模块实战(十四):实现在线答疑功能
- Crawler data analysis
- Abnormal (2)
猜你喜欢

C # use log4net to record logs (basic chapter)

DADNN: Multi-Scene CTR Prediction via Domain-Aware Deep Neural Network

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

WCF introductory tutorial II

Now developers are beginning to do testing. Will there be no software testers in the future?

Network Trimming: A Data-Driven Neuron Pruning Approach towards Efficient Deep Architectures论文翻译/笔记

JMeter performance test saves the results of each interface request to a file

Summarize the common high-frequency interview questions of the software testing post

Examples of financial tasks: real-time and offline approval of three scenarios and five optimizations of Apache dolphin scheduler in Xinwang bank

Practice of online question feedback module (XIV): realize online question answering function
随机推荐
Wrong Addition
LeetCode剑指offer专项(一)整数
Anaconda 中安装 百度飞浆Paddle 深度学习框架 教程
How to close the high-level port
Master slave database deployment
程序环境和预处理
DevExpress.XtraEditors.DataNavigator用法
Establishment and use of openstack cloud platform
Speech at 2021 global machine learning conference
MySQL之执行计划
系统架构&微服务
Installation of Baidu flying paste deep learning framework tutorial in Anaconda
DCN (deep cross network) Trilogy
ARIMA model for time series analysis and prediction
Hcip--- BGP comprehensive experiment
Leetcode sword finger offer special (I) integer
音视频学习(十)——ps流
Fang Wenshan, Jay Chou's best partner, will officially announce "Hualiu yuancosmos" on July 25
Use of views
Wrong Addition