matlab 统计总结
来源:互联网 发布:js获取点击事件 编辑:程序博客网 时间:2024/05/18 00:30
方法一:tabulate
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
0 0
- matlab 统计总结
- MATLAB统计与回归
- matlab统计函数
- [转载]MATLAB统计工具箱
- matlab统计工具箱简介
- MATLAB统计工具箱
- Matlab统计作图
- Matlab统计工具箱
- Matlab统计绘图
- Matlab之统计函数
- Matlab与概率统计
- MATLAB 概率统计
- MATLAB统计工具箱
- Matlab画统计折线
- Matlab 日期频次统计
- 统计作图(Matlab)
- MATLAB概率统计
- matlab总结
- Nginx1.1实现Resin4集群
- grnmarker笔记
- C# String
- 面试宝典上的Java实现栈操作
- 方差-研究随机变量与其均值的偏离程度
- matlab 统计总结
- JavaScript中鼠标event的位置(clientX,layerX,x,offsetX等)
- OJ网站leetcode
- Linux kernel panic问题解决方法
- js格式化金额
- Linux MySQL 更改字符集(程序中插入中文乱码 )
- oracle 递归查询 CONNECT BY、START WITH、CONNECT_BY_ROOT、CONNECT_BY_ISLEAF、SYS_CONNECT_BY_PATH
- 土地利用/覆盖遥感分类研究
- Android JNI Knowledge