Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (2)
ordering and sorting
no vote
B = sort(A) sorts the elements of A in ascending order along the first array dimension whose size does not equal 1. For strings, this is a sort in ASCII dictionary order. The sort is case-sensitive; uppercase letters appear in the output before lowercase. If A is a vector, then sort(A) sorts the vector elements. If A is a nonempty, nonvector matrix, then sort(A) treats the columns of A as vectors and sorts each column. If A is an empty 0-by-0 matrix, then sort(A) returns an empty 0-by-0 matrix. If A is a multidimensional array, then sort(A) treats as vectors all values along the first array dimension whose size does not equal 1, and then sorts each vector.
lasath
2016-08-23
1
1
code for arranging
no vote
I have an array 'A' of size 50 x 10 filled with doubles. I want to arrange each row in ascending order to get a new array 'B' but I want to create a third array 'C' where I keep track of the index from original array 'A'
lasath
2016-08-23
1
1
No more~