查找最大元素?
7次观看(最近30天)
显示较旧的评论
大家好
I have an array say A = [1 5 7 4 8 10 14]. I want to find most largest, second most largest and 3rd most largest elements from A.
我已经发现可以使用MAXK函数来完成它,该功能可用于MATLAB的更新版本,但我正在使用R2017A,其中Maxk函数无法使用。
无论如何,我想像ANS = [14 10 8]看到输出。请提前帮助。