I have created a matrix by concatenating two arrays as column vectors, so I have something like the following:
ErrKappa | error |
---|---|
1 | 0.5 |
2 | 0.76 |
2 | 0.5 |
3 | 0.15 |
4 | 0.5 |
4 | 0.9 |
2 | 0.5 |
3 | 0.05 |
And then I need it to output another matrix that which just has the maximum error of the values which are the same from the matrix, so the new one will look like the following:
ErrKappa | error |
---|---|
1 | 0.5 |
2 | 0.76 |
3 | 0.5 |
4 | 0.9 |
Please note that ErrKappa
doesn't need to be put in order, it just so happened that it appeared like that in this toy example. Any help is massively appreciated. Thanks!