MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > Access a matrix rowwise without transpose? 

Subject: Access a matrix rowwise without transpose? From: Donald Date: 17 Apr, 2011 04:06:04 Message: 1 of 9 
I'm trying to figure out if what I'm attempting to do is possible. Suppose I have two vectors aa and bb. Suppose aa is sorted in ascending order and I want to have vectors sorted by bb in ascending order. I was thinking that at the expense of memory space I could do this by using a matrix. Here's my example: 
Subject: Access a matrix rowwise without transpose? From: ImageAnalyst Date: 17 Apr, 2011 05:04:10 Message: 2 of 9 
Donald: 
Subject: Access a matrix rowwise without transpose? From: Nasser M. Abbasi Date: 17 Apr, 2011 05:20:24 Message: 3 of 9 
On 4/16/2011 9:06 PM, Donald wrote: 
Subject: Access a matrix rowwise without transpose? From: Roger Stafford Date: 17 Apr, 2011 05:38:04 Message: 4 of 9 
"Donald " <gt4715b@yahoo.com> wrote in message <iodovc$3b3$1@fred.mathworks.com>... 
Subject: Access a matrix rowwise without transpose? From: Nasser M. Abbasi Date: 17 Apr, 2011 05:54:01 Message: 5 of 9 
On 4/16/2011 10:38 PM, Roger Stafford wrote: 
Subject: Access a matrix rowwise without transpose? From: Roger Stafford Date: 17 Apr, 2011 08:30:20 Message: 6 of 9 
"Nasser M. Abbasi" <nma@12000.org> wrote in message <iodva4$4hp$1@speranza.aioe.org>... 
Subject: Access a matrix rowwise without transpose? From: ImageAnalyst Date: 17 Apr, 2011 12:49:18 Message: 7 of 9 
On Apr 17, 1:54 am, "Nasser M. Abbasi" <n...@12000.org> wrote: 
Subject: Access a matrix rowwise without transpose? From: Donald Date: 17 Apr, 2011 13:30:19 Message: 8 of 9 
Thanks for the help guys. I guess I didn't explain myself very well. Indeed, what I'm trying to start with two vectors that are the row and column indices into an array where one is sorted, and end up with the indices sorted the other way. Here is my example again. 
Subject: Access a matrix rowwise without transpose? From: ImageAnalyst Date: 17 Apr, 2011 14:19:24 Message: 9 of 9 
Why not just ditch xx and do it directly: 
No tags are associated with this thread.
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.