
argmax matlab 语句怎么写?
1个回答
2015-02-11 · 知道合伙人影视综艺行家
关注

展开全部
argmax=argument of maximization
在Matlab中使用max可直接求最大值
比如给出一个数列
x=10*rand(1:10)
[max_num,max_index]=max(x)
x =
1.3791 1.6749 3.3393 1.4290 7.6355 8.4173 7.4090 2.6097 9.6208 3.5656
max_num =
9.6208
max_index =
9
结果表示数列x中第9个数据是最大数据,它的大小为9.6208
在Matlab中使用max可直接求最大值
比如给出一个数列
x=10*rand(1:10)
[max_num,max_index]=max(x)
x =
1.3791 1.6749 3.3393 1.4290 7.6355 8.4173 7.4090 2.6097 9.6208 3.5656
max_num =
9.6208
max_index =
9
结果表示数列x中第9个数据是最大数据,它的大小为9.6208
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询