当前位置:网站首页>Matlab画图2
Matlab画图2
2022-08-04 20:31:00 【万年老竹】
Matlab画图 2 统计类图像
图像类型

1.直方图 histogram
适用情况:统计整体的分布情况
histogram(X)
//histogram 函数自动选择合适的 bin 的数量,以便涵盖 x 中的值范围并显示基本分布的形状。
histogram(X,nbins)
//使用标量 nbins 指定的 bin 数量。
histogram(X,edges)
//将 X 划分到由向量 edges 来指定 bin 边界的 bin 内。每个 bin 都包含左边界,但不包含右边界,除了同时包含两个边界的最后一个 bin 外。
eg:
y=randn(1,1000);
subplot(2,1,1);histogram(y);title('Bins=default');
subplot(2,1,2);histogram(y,50);title('Bins=50');
结果如下

2.直方图 Bar Chart
适用情况:个体之间不同的分布情况 eg:
x=[1 2 5 4 8];y=[x;1:5];
subplot(1,3,1);bar(x);title('bar of x');
subplot(1,3,2);bar(y);title('bar of y');
subplot(1,3,3);bar3(y);title('bar of y 3D');
结果如下

3.堆叠和水平条形图 Stacked and Horizontal Bar Chart
eg:
x=[1 2 5 4 8];y=[x;1:5];
subplot(1,3,1);bar(x,'stacked');title('bar of x in stacked');
subplot(1,3,2);bar(y,'stacked');title('bar of y in stacked');
subplot(1,3,3);barh(y);title('bar of y in horizontal');
结果如下

4.饼状图 Pie Chart
eg:
x=[1 2 5 6];
subplot(2,2,1);pie(x);
subplot(2,2,2);pie(x,[0,0,0,1]);
subplot(2,2,3);pie3(x);
subplot(2,2,4);pie3(x,[0,0,0,1]);
结果如下

5.极坐标图 Polar Chart
6.阶梯图与针状图 Stair and Stem Chart
7.箱线图与误差条线图 Boxplot and Error Bar
8.
边栏推荐
- 简述@RequestParam与@RequestBody参数注解
- Oreo domain name authorization verification system v1.0.6 public open source version website source code
- 明明加了唯一索引,为什么还是产生了重复数据?
- vs Code 运行一个本地WEB服务器
- 【SQL】触发器同步表数据
- ADB 安装 + 打驱动全教程
- ASP.NET商贸进销存管理系统源码(带数据库文档)源码免费分享
- 动态数组底层是如何实现的
- Getting Started with Lattice Passwords
- "WAIC 2022 · hackers marathon" two ants wealth competition invited you to fight!
猜你喜欢

深度解析:为什么跨链桥又双叒出事了?

"WAIC 2022 · hackers marathon" two ants wealth competition invited you to fight!

Qt Designer生成的图形可以自适应窗口的大小变化

DICOM医学影像协议

【C语言】指针和数组的深入理解(第三期)

刷题-洛谷-P1319 压缩技术

搭建MyCat2一主一从的MySQL读写分离

零知识证明笔记——私密交易,pederson,区间证明,所有权证明

How to make good use of builder mode
![[Data Mining] Written Exam Questions for Sohu Data Mining Engineers](/img/d9/450eeecd5c7835d40ac38da41fc08e.png)
[Data Mining] Written Exam Questions for Sohu Data Mining Engineers
随机推荐
大资本已开始逃离加密领域?
搭建MyCat2双主双从的MySQL读写分离
零知识证明笔记——私密交易,pederson,区间证明,所有权证明
Qt Designer生成的图形可以自适应窗口的大小变化
The establishment of simple data cache layer
QT(41)-多线程-QTThread-同步QSemaphore-互斥QMutex
动态规划_双数组字符串
mysql的存储过程介绍、创建、案例、删除、查看「建议收藏」
web 应用开发最佳实践之一:避免大型、复杂的布局和布局抖动
MySQL field type
C语言基础[通俗易懂]
MATLAB中readtimetable函数用法
PriorityQueue类的使用及底层原理
Chrome安装zotero connector 插件
如何找到某个 ABAP structure 某字段的源头来自哪个数据库表
在vs code中进行本地调试和开启本地服务器
Feign 与 OpenFeign
帝国CMS仿核弹头H5小游戏模板/92game帝国CMS内核仿游戏网整站源码
MySQL stored procedure introduction, creation, case, delete, view "recommended collection"
String中的hashcode缓存以及HashMap中String作key的好处