LucaLuca
2018-10-19 21:22:12 UTC
hi,
look that:
a=[3 6 4 7 3]
a =
3 6 4 7 3
max(a)
=
error: A(I): index out of bounds; value 7 out of bound 5
why?
the help online about max write:
Find maximum values in the array x.
For a vector argument, return the maximum value.
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
look that:
a=[3 6 4 7 3]
a =
3 6 4 7 3
max(a)
=
error: A(I): index out of bounds; value 7 out of bound 5
why?
the help online about max write:
Find maximum values in the array x.
For a vector argument, return the maximum value.
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html