加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

matlab求矩阵每行或者每列的最大值

(2009-05-22 18:19:51)
标签:

matlab

最大值

杂谈

分类: matlab学习

 MAX    Largest component.
    For vectors, MAX(X) is the largest element in X. For matrices,
    MAX(X) is a row vector containing the maximum element from each
    column. For N-D arrays, MAX(X) operates along the first
    non-singleton dimension.
 
    [Y,I] = MAX(X) returns the indices of the maximum values in vector I.
    If the values along the first non-singleton dimension contain more
    than one maximal element, the index of the first one is returned.
 
    MAX(X,Y) returns an array the same size as X and Y with the
    largest elements taken from X or Y.  Either one can be a scalar.
 
    [Y,I] = MAX(X,[],DIM) operates along the dimension DIM.
 
    When complex, the magnitude MAX(ABS(X)) is used, and the angle
    ANGLE(X) is ignored.  NaN's are ignored when computing the maximum.
 
    Example: If X = [2 8 4   then max(X,[],1) is [7 8 9],
                     7 3 9]
 
        max(X,[],2) is [8    and max(X,5) is [5 8 5
                        9],                   7 5 9].
 
    See also min, median, mean, sort.

    Overloaded functions or methods (ones with the same name in other directories)
       help quantizer/max.m
       help fints/max.m
       help localpspline/max.m
       help localpoly/max.m

    Reference page in Help browser
       doc max

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有