matlab 中[~,index] =

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 00:13:31

matlab 中[~,index] =

表示最大值,index表示最大值的位置
如[m,n]=max([1,-1,5,2])
则m=5,n=3