help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

max value : problem with array


From: LucaLuca
Subject: max value : problem with array
Date: Fri, 19 Oct 2018 16:22:12 -0500 (CDT)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]