I am a novice learner in Simulink. I have been trying to sort the uniform random numbers in ascending order using the Matlab Function block in Simulink. Somehow it did not work. Here is the code that I wrote in a MATLAB function
function y = fcn(u)
%#codegen
y =sort(log(u)/-0.0089);
Can anyone help me with this?

fcn, in other words, what isu? Please make a minimal, complete and verifiable example (stackoverflow.com/help/mcve). - mars