MATLAB: Finding max value from one dimensional matrix

matrixmax

I have a 1×10 matrx. I need a maximum value of the matrix leaving first four locations.
For example A=[2 3 6 1 8 0 2 4 5 6]
I need max from [8 0 2 4 5 6]

Best Answer

max(A(5:end));