问下matlab计算频度的问题把分级范围变细 咋做呢现在是20个一组我想划分细点比如 A=[1,4,5,6,9];[a,b]=hist(A);bar(b,a/sum(a))对以上划分每1个整数单位为一个区间0-1:1个1-2:0个2-3 0个3-4 1个.类似这样
来源:学生作业帮助网 编辑:作业帮 时间:2024/05/10 11:12:56
![问下matlab计算频度的问题把分级范围变细 咋做呢现在是20个一组我想划分细点比如 A=[1,4,5,6,9];[a,b]=hist(A);bar(b,a/sum(a))对以上划分每1个整数单位为一个区间0-1:1个1-2:0个2-3 0个3-4 1个.类似这样](/uploads/image/z/10095774-6-4.jpg?t=%E9%97%AE%E4%B8%8Bmatlab%E8%AE%A1%E7%AE%97%E9%A2%91%E5%BA%A6%E7%9A%84%E9%97%AE%E9%A2%98%E6%8A%8A%E5%88%86%E7%BA%A7%E8%8C%83%E5%9B%B4%E5%8F%98%E7%BB%86+%E5%92%8B%E5%81%9A%E5%91%A2%E7%8E%B0%E5%9C%A8%E6%98%AF20%E4%B8%AA%E4%B8%80%E7%BB%84%E6%88%91%E6%83%B3%E5%88%92%E5%88%86%E7%BB%86%E7%82%B9%E6%AF%94%E5%A6%82+A%3D%5B1%2C4%2C5%2C6%2C9%5D%3B%5Ba%2Cb%5D%3Dhist%28A%29%3Bbar%28b%2Ca%2Fsum%28a%29%29%E5%AF%B9%E4%BB%A5%E4%B8%8A%E5%88%92%E5%88%86%E6%AF%8F1%E4%B8%AA%E6%95%B4%E6%95%B0%E5%8D%95%E4%BD%8D%E4%B8%BA%E4%B8%80%E4%B8%AA%E5%8C%BA%E9%97%B40-1%3A1%E4%B8%AA1-2%EF%BC%9A0%E4%B8%AA2-3+0%E4%B8%AA3-4+1%E4%B8%AA.%E7%B1%BB%E4%BC%BC%E8%BF%99%E6%A0%B7)
问下matlab计算频度的问题把分级范围变细 咋做呢现在是20个一组我想划分细点比如 A=[1,4,5,6,9];[a,b]=hist(A);bar(b,a/sum(a))对以上划分每1个整数单位为一个区间0-1:1个1-2:0个2-3 0个3-4 1个.类似这样
问下matlab计算频度的问题
把分级范围变细 咋做呢
现在是20个一组
我想划分细点
比如
A=[1,4,5,6,9];
[a,b]=hist(A);
bar(b,a/sum(a))
对以上划分每1个整数单位为一个区间
0-1:1个
1-2:0个
2-3 0个
3-4 1个
.类似这样的划分区间是什么函数?想把区间划分细点
版本是R2011B
问下matlab计算频度的问题把分级范围变细 咋做呢现在是20个一组我想划分细点比如 A=[1,4,5,6,9];[a,b]=hist(A);bar(b,a/sum(a))对以上划分每1个整数单位为一个区间0-1:1个1-2:0个2-3 0个3-4 1个.类似这样
N = hist(Y,M),where M is a scalar,uses M bins.
N = hist(Y,X),where X is a vector,returns the distribution of Y
among bins with centers specified by X.The first bin includes
data between -inf and the first center and the last bin
includes data between the last bin and inf.Note:Use HISTC if
it is more natural to specify bin edges instead.
假设你数据区间是[0,100],最简单的做法是
N = hist(A,[0.5:1:100])