Timeline for Finding max value of each column of 4x4 Array
Current License: CC BY-SA 3.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 19, 2013 at 20:52 | history | edited | Artes | CC BY-SA 3.0 |
added 15 characters in body
|
Sep 19, 2013 at 20:47 | comment | added | ssch |
Use ToExpression to to convert the strings into numbers, A=ToExpression[A]
|
|
Sep 19, 2013 at 20:44 | history | edited | Artes | CC BY-SA 3.0 |
deleted 13 characters in body
|
Sep 19, 2013 at 20:40 | comment | added | UTK | I do have strings in A and A[[1,1]] does not give me a value. | |
Sep 19, 2013 at 19:52 | answer | added | Mr.Wizard | timeline score: 2 | |
Sep 19, 2013 at 19:51 | comment | added | ssch |
Is it possible you have "strings" in A? Does A[[1,1]]//FullForm have " around the value?
|
|
Sep 19, 2013 at 19:49 | comment | added | ssch |
@UTK that seems very strange as that should evaluate to 0.474042 automatically. Does Definition[Max] have anything more than just Attributes[Max]=... ? If it does you can restart the kernel to reset all definitions you have made. (In the menu Evaluation->Quit kernel->Local)
|
|
Sep 19, 2013 at 19:45 | review | First posts | |||
Sep 19, 2013 at 20:44 | |||||
Sep 19, 2013 at 19:44 | comment | added | UTK | I am getting weird result though. Here it's: Max[0.467079,0.46797,0.473447,0.474042] Any recommendation? | |
Sep 19, 2013 at 19:37 | answer | added | RunnyKine | timeline score: 1 | |
Sep 19, 2013 at 19:32 | comment | added | Wizard |
Well actually using Max[] on each column does the trick. Your syntax is correct for the first column.
|
|
Sep 19, 2013 at 19:31 | comment | added | Dr. belisarius | Max/@Transpose@A ? | |
Sep 19, 2013 at 19:31 | history | edited | Dr. belisarius | CC BY-SA 3.0 |
added 50 characters in body
|
Sep 19, 2013 at 19:28 | history | asked | UTK | CC BY-SA 3.0 |