当前位置:网站首页>Matlab-二/三维图上绘制黑点
Matlab-二/三维图上绘制黑点
2022-07-26 07:40:00 【HappyLaber】
推荐阅读:https://happylaber.netlify.app/
使用此功能需要安装Climate Data Toolbox
二维
1.绘制格网图(pcolor)
[X,Y,Z] = peaks(1000);
pcolor(X,Y,Z)
shading interp
hold on
2.生成掩膜
mask = Z>2.5;
3.绘制黑点
color属性控制点的颜色,默认为黑色;density属性控制点的密度,默认为100;marker属性控制点的符号,默认为点;markersize属性控制点的大小,默认为6。
stipple(X,Y,mask,'color',[0,0,0],'density',100,'marker','.','markersize',10);

三维
1.绘制三维图(surf)
[X,Y,Z] = peaks(1000);
surf(X,Y,Z)
shading interp
hold on
2.绘制黑点
h=stipple(X,Y,mask,'color',[0,0,0],'density',100,'marker','.','markersize',6);
3.改变句柄h的数据
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);

边栏推荐
- Keras learning part: obtaining the output results of neural network middle layer
- Parameterization of JMeter performance test using CSV file
- Meta universe infrastructure: analysis of the advantages of Web 3.0 chain33
- C语言关键字extern
- API (common class 2)
- Jmeter性能测试之命令行执行和生成测试报告
- 【每日一题】919. 完全二叉树插入器
- [classic thesis of recommendation system (10)] Alibaba SDM model
- DCN (deep cross network) Trilogy
- Common database commands (special for review)
猜你喜欢

Dynamic performance view overview

Ethernet switching security

MySQL之执行计划

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

3.0.0 alpha blockbuster release! Nine new functions and new UI unlock new capabilities of dispatching system

以太网交换安全

20220209 create a basic Servlet

总结软件测试岗的那些常见高频面试题

Regression analysis code implementation

Examples of financial tasks: real-time and offline approval of three scenarios and five optimizations of Apache dolphin scheduler in Xinwang bank
随机推荐
2021全球机器学习大会演讲稿
Vscode cannot start the problem solving idea
力扣(LeetCode)206. 反转链表(2022.07.25)
MySQL之执行计划
音视频学习(十)——ps流
Dynamic performance view overview
Common database commands (special for review)
How to ensure the double write consistency between cache and database?
PHP environment deployment
系统架构&微服务
Command line execution and test report generation of JMeter performance test
What is message subscription and publishing?
HOT100 hash
Model pruning 3: learning structured sparsity in deep neural networks
LeetCode剑指offer专项(一)整数
The analysis, solution and development of the problem of router dropping frequently
[daily question 1] 919. Complete binary tree inserter
QT listview add controls and pictures
2021-11-09
Hcip--- BGP comprehensive experiment