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 one found is

returned.

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

isnan, mean, median, min, sort

grs matlab公式,[转载]matlab中Max的用法(转)相关推荐

  1. python中max函数用法_Python中max函数用法实例分析

    Python中max函数用法实例分析 更新时间:2015年07月17日 15:45:09 作者:优雅先生 这篇文章主要介绍了Python中max函数用法,实例分析了Python中max函数的功能与使用 ...

  2. matlab 中max函数用法

    Matlab中max函数在矩阵中求函数大小的实例如下: (1)C = max(A) 返回一个数组各不同维中的最大元素. 如果A是一个向量,max(A)返回A中的最大元素. 如果A是一个矩阵,max(A ...

  3. Matlab中max函数用法

    Matlab中max函数在矩阵中求大小: (1) C = max(A) 返回一个数组各不同维度中的最大元素. 如果A是一个向量,max(A)返回A中的最大元素. 如果A是一个矩阵,max(A)将A的每 ...

  4. matlab公式形式,matlab表达式转换为word公式

    将Matlab 表达式转换为word 公式 (1) Matlab 可以把公式表达式转换为Cfortran 格式,也可以转换为Latex 排版格式,由于Latex 公式的控制格式是纯文本的,因此任何表达 ...

  5. fortran调用matlab画图,[转载]Matlab与Fortran的交互--基本概念

    如果需要进行Matlab环绕Fortran语言的交互,必须通过Matlab提供的应用编程接口(API)来实现与外部的接口,从而可以在Matlab环境中实现调用Fortran程序.输入或输出数据以及和其 ...

  6. [转载]C#中MessageBox.Show用法以及VB.NET中MsgBox用法

    一.C#中MessageBox.Show用法 MessageBox.Show (String) 显示具有指定文本的消息框. 由 .NET Compact Framework 支持. MessageBo ...

  7. format函数python的顺序_[转载] Python中format函数用法

    Python中format函数用法 format优点 format是python2.6新增的格式化字符串的方法,相对于老版的%格式方法,它有很多优点. 1.不需要理会数据类型的问题,在%方法中%s只能 ...

  8. [转载] Python中format函数用法

    参考链接: Python | format Python中format函数用法 format优点 format是python2.6新增的格式化字符串的方法,相对于老版的%格式方法,它有很多优点. 1. ...

  9. matlab 电场线公式,[转载]Matlab如何画出点电荷的电场线和等势面分布

    1.3维的 计算两点电荷电场中电势的分布: 1.模型建立:平面上在x=2, y=0处有一正电荷,x=-2, y=0处有一负电荷: 2.计算公式:根据U=q /(4π*r*ε0) ,r为两点间的距离公式 ...

最新文章

  1. 芯片龙头出大招!向梁孟松等 3944 名员工发 13 亿,每人到手超 34 万
  2. 77.redis介绍 安装 持久化 数据类型
  3. 运维-nginx +php 错误状态码说明
  4. SIMD指令集——一条指令操作多个数,SSE,AVX都是,例如:乘累加,Shuffle等
  5. Mysql 查询一天中每半小时记录的数量
  6. python新建文件夹口令_Python 口令保管箱
  7. s4-2 ALOHA 协议
  8. keepalived基础及使用DR模型构建一个real_server
  9. java 检查目录是否存在_如何检查Java目录是否存在?
  10. 前端学习(736):函数的返回值return
  11. app/bootstrap.php.cache : failed to open stream: No such file or directory
  12. Web前端面试指导(十四):如何居中一个元素(正常、绝对定位、浮动元素)?
  13. Linux 根据服务名字找安装路径
  14. USB转串口那些事儿—串口驱动类型
  15. ftp服务器文件保存位置,ftp服务器和文件保存路径
  16. 如何横扫棋坛?AlphaGo 先随机扔了一个骰子
  17. 内边距padding
  18. 青柠开车Spring Cloud(六) —— Spring Cloud Gateway与zuul使用对比
  19. Java警告The serializable class XXX does not declare a static final serialVersionUID field of type long
  20. ISA2006禁止BT下载方法

热门文章

  1. Kd-Tree算法原理和开源实现代码
  2. Python下使用subprocess中文乱码的解决方案
  3. 二十七、事务隔离级别示例
  4. php注册程序,[PHP初级]手把手教你写注册程序 1
  5. mounted钩子函数_vue3.0项目开发(八)新特性之响应式系统watchEffect函数
  6. elasticsearch扩展ik分词器词库
  7. vue防抖和节流是什么_防抖和节流为什么重要!!!
  8. 设计点击左侧切换页面进出_Axure教程:(初级)导航中的页面切换
  9. linux文件统计命令,linux文件统计命令和目录统计命令
  10. android快速充电实现_用一个快充头实现苹果安卓同时快充,实在太赞了!