我是靠谱客的博主 优美大米,这篇文章主要介绍matlab中计数函数,科学网—matlab最基本的统计函数 - 管俊彪的博文,现在分享给大家,希望可以做个参考。

% min(x): 向量x 的元素的最小值

% max(x): 向量x 的元素的最大值

% mean(x): 向量x 的元素的平均值

% median(x): 向量x 的元素的中位数

% std(x): 向量x 的元素的标准差

% diff(x): 向量x 的相邻元素的差

% sort(x): 对向量x 的元素进行排序

% length(x): 向量x 的元素个数

% norm(x): 向量x 的欧氏长度

% sum(x): 向量x 的元素总和

% prod(x): 向量x 的元素总乘积

% product(x); 分量积

% cumsum(x): 向量x 的累计元素总和,生成一个向量即:[a1,a1+a2,a1+a2+a3,...]

% cumprod(x): 向量x 的累计元素总乘积

% dot(x, y): 向量x 和y 的内积

% cross(x, y): 向量x 和y 的外积

%       max           - Largest component.

%       min           - Smallest component.

%       mean          - Average or mean value.

%       median        - Median value.

%       std           - Standard deviation.

%       var           - Variance.

%       sort          - Sort in ascending order.

%       sortrows      - Sort rows in ascending order.

%       sum           - Sum of elements.

%       prod          - Product of elements.

%       hist          - Histogram.

%       histc         - Histogram count.

%       trapz         - Trapezoidal numerical integration.

%       cumsum        - Cumulative sum of elements.

%       cumprod       - Cumulative product of elements.

%      cumtrapz      - Cumulative trapezoidal numerical integration.

转载本文请联系原作者获取授权,同时请注明本文来自管俊彪科学网博客。

链接地址:http://blog.sciencenet.cn/blog-354740-349340.html

上一篇:推荐一个搜索引擎

下一篇:CA生成的一些有趣斑图

最后

以上就是优美大米最近收集整理的关于matlab中计数函数,科学网—matlab最基本的统计函数 - 管俊彪的博文的全部内容,更多相关matlab中计数函数,科学网—matlab最基本的统计函数内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(153)

评论列表共有 0 条评论

立即
投稿
返回
顶部