matlab 统计总结
2014-07-09 14:03
134 查看
方法一:tabulate
方法二: hist
TABLE = TABULATE(X), where X is a character array or a cell array of strings, returns TABLE as a cell array
a = 1 2 3 4 2 3 1 >> x = tabulate(a) x = 1.0000 2.0000 28.5714 2.0000 2.0000 28.5714 3.0000 2.0000 28.5714 4.0000 1.0000 14.2857 >> x(:,1:2) ans = 1 2 2 2 3 2 4 1
方法二: hist
N = HIST(Y) bins the elements of Y into 10 equally spaced containers and returns the number of elements in each container. If Y is a matrix, HIST works down the columns. 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. Note: Use HISTC if it is more natural to specify bin edges instead.
a = 1 2 3 4 2 3 1 >> b = hist(a,unique(a)) b = 2 2 2 1 >> [unique(a)' b'] ans = 1 2 2 2 3 2 4 1
相关文章推荐
- 最近开发一个SQL server大数据量统计系统的经验总结
- C++Builder下调用Matlab的COM总结
- SQL进行排序、分组、统计的10个新技巧(个人总结)-------Mondify By LiFuyun
- .net调用OWC生成报表统计图总结 (转)
- Matlab GUIDE使用总结--Matlab GUI界面
- [总结]关于在线用户列表的统计![转载]
- VC和Matlab混合编程总结
- 统计信息相关资料的总结(原创)
- .net使用DotNetCharting控件生成报表统计图总结[转自—飛雪飄寒]
- VC+Matlab混合编程经验总结
- 地理统计总结
- 常见企业分类统计标准总结-内资报表部分(工作中用)
- 用OWC做统计图总结(做的一个封装类)
- 最近开发一个SQL server大数据量统计系统的经验总结
- 【总结】一些网络流量统计的网站及工具
- [总结]关于在线用户列表的统计!
- Matlab学习一周总结
- java调用matlab的总结
- Matlab概率统计编程指南
- Matlab中使用Plot函数动态画图方法总结