I have the following array in both MatrixForm
and List
form
0.474042 0.507508 0.4977 0.539773
0.473447 0.50765 0.483809 0.52489
0.46797 0.483669 0.494823 0.516956
0.467079 0.483509 0.478704 0.501286
A = {{ 0.474042, 0.507508, 0.4977, 0.539773},
{ 0.473447, 0.50765, 0.483809, 0.52489 },
{ 0.46797, 0.483669, 0.494823, 0.516956},
{ 0.467079, 0.483509, 0.478704, 0.501286}
}
I want to get the max value of each column. I've tried the following for the first columns but no help:
Max[A[[All, 1]]]
Any comment will be greatly appreciated.
Max[]
on each column does the trick. Your syntax is correct for the first column. $\endgroup$0.474042
automatically. DoesDefinition[Max]
have anything more than justAttributes[Max]=...
? If it does you can restart the kernel to reset all definitions you have made. (In the menu Evaluation->Quit kernel->Local) $\endgroup$A[[1,1]]//FullForm
have " around the value? $\endgroup$