Skip to main content
2 of 12
added 16 characters in body
254
  • 13
  • 4

Sort each column in a list contained in an association (envelope of Monte Carlo replicas)

I have an Association which contains three matrices 1000x200.
Each row of a matrix denotes a different set of parameters, while Each column contains the outcomes of the function for a specific value of x.

I want to sort each column in ascending order, so that the first row will now contains the lowest values, while the last row will contain the highest.
These rows will be then used to create a function that represents the envelope of the different outcomes of a Monte Carlo method.

I tried using Sort, together with Transpose but the result is messed up.

Thanks for the help

254
  • 13
  • 4