[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to get maximum last n element in array
From: |
LucaLuca |
Subject: |
Re: how to get maximum last n element in array |
Date: |
Fri, 6 Jul 2018 07:24:00 -0700 (MST) |
if i set columns=1 i want to know the last n element of M[:,1]
the maximum of last n element
example:
[1,1] = 1
[1,2] = 34
[1,3] = 4
[1,4] = 5
[1,5] = 6
[1,6] = 1
[1,7] = 2
[1,8] = 3
[1,9] = 4
the maximum of last 5 element is 6 (6,1,2,3,4 ===>6)
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html