Mathematica 9 is now available
Student Support Forum
Student Support Forum > General > > "max element in matrix"

Post Reply:
Email Address:

Please send email when my message is replied to.

Url (optional):
Message: view original message?
Attachment (optional):
Please answer this:1+1 =

Original Message (ID '69933') By Bill Simpson:
If you want to know the biggest element and where it is then you must keep track of the biggest element seen thus far and update that each time a bigger element is seen. In[1]:= A={{1.1161`,0.1254`,0.1397`,0.149`},{0.1582`,1.1675`,0.1768`,0.1871`},{0.1968`,0.2071`,1.2168`,0.2271`},{0.2368`,0.2471`,0.2568`,1.2671`}}; biggest=A[[1,1]];xpos=1;ypos=1; For[i=1,i≤4,i++, For[j=1,j≤4,j++, If[Abs[biggest]