当前位置:网站首页>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)
边栏推荐
- 嵌入式三级笔记
- 【力扣】1154. 一年中的第几天
- hugging face tutorial - Chinese translation - sharing custom model
- 【力扣】55. 跳跃游戏
- NLP-Reading Comprehension Task Learning Summary Overview
- Monte Carlo simulation
- 图像质量指标:峰值信噪比PSNR和结构相似性SSIM
- 【Postgraduate Work Weekly】(Week 8)
- 云模型和Logistic回归——MATLAB在数学建模中的应用(第2版)
- hugging face tutorial - Chinese translation - share a model
猜你喜欢
随机推荐
QNX 7.1 交叉编译 boost 1.76
将类指针强制转换为void*指针进行传参的使用方法
hugging face tutorial - Chinese translation - preprocessing
Vim实用技巧_3.可视模式和命令模式
PE format series _0x05: output table and relocation table (.reloc)
VGG pytorch实现
大唐杯5G练习题(一)
配置 vscode 让它变得更好用
大唐杯5G练习题(二)
【深度学习】归一化(十一)
堆(heap)系列_0x02:堆的前世今生(WinDbg+Visual Studio汇编)
堆(heap)系列_0x04:堆的内部结构(_HEAP=_HEAP_SEGMENT+_HEAP_ENTRY)
数学规划模型
【深度学习】梳理凸优化问题(五)
蓝桥杯嵌入式第十三届模拟题做题笔记
【力扣】1995. 统计特殊四元组
【Postgraduate Work Weekly】(Week 9)
Hold face (hugging face) tutorial - Chinese translation - task summary
【力扣】17. 电话号码的字母组合
ConvNext笔记









