当前位置:网站首页>Matlab做分布拟合及绘制频率分布直方图
Matlab做分布拟合及绘制频率分布直方图
2022-08-09 14:59:00 【李昊19961128】
参考链接:https://blog.csdn.net/qq_31816741/article/details/79360574
clc
clear
close all
x = randn(1000, 1);
% 画频率分布直方图
[counts,centers] = hist(x, 7);
figure
bar(centers, counts / sum(counts))
% 分布参数拟合
[mu,sigma]=normfit(x);
% 画已知分布的概率密度曲线
x1 = -4:0.1:4;
y1 = pdf('Normal', x1, mu,sigma);
hold on
plot(x1, y1)
边栏推荐
- Candide3 face animation model
- 灰色关联分析
- 【Postgraduate Work Weekly】(Week 9)
- 灰色关联度矩阵——MATLAB在数学建模中的应用
- 大唐杯5G练习题(二)
- Virtualbox 设置共享文件夹
- Heap series _0x02: The past and present of the heap (WinDbg+Visual Studio compilation)
- NLP-Reading Comprehension Task Learning Summary Overview
- Vim practical skills_4. Manage multiple files (open + split + save + netrw)
- 用广搜和动态规划写个路径规划程序
猜你喜欢
随机推荐
matlab讲解与使用【持续更新中ing】
【学习笔记】win10报0xc0000221错误无法开机
Principal Component Analysis - Applications of MATLAB in Mathematical Modeling (2nd Edition)
软件安全内存区域详解
【工具使用】Modsim32软件使用详解
hugging face tutorial-Chinese translation-pipeline-based reasoning
Vim实用技巧_0.vim - introduction
深入浅出最优化(6) 最小二乘问题的特殊方法
【 graduate work weekly 】 (10 weeks)
Postgraduate Work Weekly
图论最短路径求解
SVM支持向量机——MATLAB在数学建模中的应用
Heap series _0x03: heap block + malloc/new bottom layer + LFH (WinDbg analysis)
【SQL】595. 大的国家
解决pyqt5 DLL load failed: 找不到指定的程序的问题
QNX 7.1 交叉编译 boost 1.76
"Deep learning" evaluation index of target detection
Postgraduate Work Weekly (Week 13)
深入浅出最优化(4) 拟牛顿法
Data Fitting Methods Application of MATLAB in Mathematical Modeling (Second Edition)