matlab中Max的用法
来源:互联网 发布:mac系统硬盘格式 编辑:程序博客网 时间:2024/04/28 22:09
matlab中Max的用法
(2011-09-14 16:24:01)杂谈
分类: matlab学习Matlab中max函数在矩阵中求函数大小的实例如下:
C = max(A)
返回一个数组各不同维中的最大元素。
如果A是一个向量,max(A)返回A中的最大元素。
如果A是一个矩阵,max(A)将A的每一列作为一个向量,返回一行向量包含了每一列的最大元素。
如果A是多为数组,max(A) treats the values along the first non-singleton dimension as vectors, returning the maximum value of each vector.
C = max(A,B)
返回一个和A和B同大小的数组,其中的元素是从A或B中取出的最大元素。
C = max(A,[],dim)
返回A中有dim指定的维数范围中的最大值。
[C,I] = max(...)
找到A中那些最大值的索引位置,将他们放在向量I中返回。如果这里有多个相同最大值时,返回的将是第一个的索引。
-----------------------------------------------
max
Maximum elements of an array
Syntax
C = max(A)
C = max(A,B)
C = max(A,[],dim)
[C,I] = max(...)
Description
C = max(A) returns the largest elements along different dimensions of an array. If A is a vector, max(A) returns the largest element in A. If A is a matrix, max(A) treats the columns of A as vectors, returning a row vector containing the maximum element from each column. If A is a multidimensional array, max(A) treats the values along the first non-singleton dimension as vectors, returning the maximum value of each vector.
C = max(A,B) returns an array the same size as A and B with the largest elements taken from A or B.
C = max(A,[],dim) returns the largest elements along the dimension of A specified by scalar dim. For example, max(A,[],1) produces the maximum values along the first dimension (the rows) of A.
[C,I] = max(...) finds the indices of the maximum values of A, and returns them in output vector I. If there are several identical maximum values, the index of the first on
Remarks
For complex input A, max returns the complex number with the largest complex modulus (magnitude), computed with max(abs(A)), and ignores the phase angle, angle(A). The max function ignores NaNs.
See Also
- matlab中Max的用法
- matlab中max的用法
- Matlab中max()函数的用法
- Matlab中max()函数的用法
- SQL 2005 中varchar(max) 的用法
- matlab中clear的用法
- matlab中size的用法
- matlab中inline的用法
- matlab 中eps的用法
- MATLAB中median的用法
- Matlab中fspecial的用法
- Matlab中fspecial的用法
- matlab中冒号的用法
- MATLAB中plot的用法
- MATLAB中regionprops的用法
- matlab中stem的用法
- matlab中disp的用法
- Matlab中fscanf的用法
- Linux监控工具vmstat命令详解
- 一步步学习数据结构和算法之归并排序效率分析及java实现
- shell 语法示例
- C++学习笔记 --- STL练习排序sort函数
- 用户名和email都可以登陆
- matlab中Max的用法
- Qt函数指针
- 谷歌2014年中国区校园招聘B轮题目二(求N个矩形内的所有点到其中一点的街区距离之和最短)解法探讨与代码实现(C++)
- 虚拟机内存
- C++堆内存和栈内存详解
- VSS Error: error reading from file 解决方法
- ubuntu12.04 android编译环境搭建
- Ubuntn操作系统学习笔记之 Shell编程基础
- 网上支付接口开发