MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > Sorting 3D Data 

I have my data as a 3d matrix A(150x120x240) or A(i,j,k) containing positional coordinates x,y,z of an object. Here, the element A(1,1,1) contains the x,y and zcoordinates of an object. I want to sort this data, but there is one problem. I cannot use the sort functions as that would lead to complete rearrangement of coordinates and the corresponding positions of x,y and z would be lost. Can anyone suggest a way that I can sort this data according to either the first dimension or second dimension or third dimension, but the corresponding other two dimensions must also change with it and the positional coordinates are not lost. 
"Medha Jani" <medha_jani@yahoo.com> wrote in message <gptk6q$4jp$1@fred.mathworks.com>... 
"John D'Errico" <woodchips@rochester.rr.com> wrote in message <gptmjl$ofq$1@fred.mathworks.com>... 
"Medha Jani" <medha_jani@yahoo.com> wrote in message <gptn2l$rme$1@fred.mathworks.com>... 
"Medha Jani" <medha_jani@yahoo.com> wrote in message <gptndv$mq8$1@fred.mathworks.com>... 
"Medha Jani" <medha_jani@yahoo.com> wrote in message <gptk6q$4jp$1@fred.mathworks.com>... 
"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in message <gptpjq$hv8$1@fred.mathworks.com>... 
"Medha Jani" <medha_jani@yahoo.com> wrote in message <gptqdh$dr0$1@fred.mathworks.com>... 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.