help-octave
[Top][All Lists]
Advanced

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

Re: Abs highest(extreme) value in a matrix with +ve & -ve elements


From: Penfold
Subject: Re: Abs highest(extreme) value in a matrix with +ve & -ve elements
Date: Mon, 23 Jan 2012 08:09:55 -0800 (PST)

Looks like you have several options from the ever-helpful Octave list,...yet
another perhaps;

%Find location and value of Matrix maximum
[colmaximums,a]=max(A);
[maxval,b]=max(colmaximums);
A(a(b),b)

%Find location and value of Matrix minimum
[colminimums,c]=min(A);
[minval,d]=min(colminimums);
A(c(d),d)


--
View this message in context: 
http://octave.1599824.n4.nabble.com/Abs-highest-extreme-value-in-a-matrix-with-ve-ve-elements-tp4320453p4321135.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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