How to get the time when a variabile reaches the maximum value?
2 views (last 30 days)
Antonio Cristian Arca on 8 Nov 2020
I would like to create a function where provides as output the period in which a variable reaches is maximum value.
For example :
x = [1 20 10 4 12]
How can I get as output in a function the sitting of 20? The function must return = 2
because in the second place there is the most high value.
I don't know where to start from.