From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Access a matrix row-wise without transpose?
Date: Sat, 16 Apr 2011 22:54:01 -0700
Organization: NNTP Server
Lines: 23
Message-ID: <iodva4$4hp$>
References: <iodovc$3b3$> <iodubs$fts$>
Reply-To: <HIDDEN>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv: Gecko/20110303 Thunderbird/3.1.9
X-Notice: Filtered by postfilter v. 0.8.2
Xref: comp.soft-sys.matlab:722298

On 4/16/2011 10:38 PM, Roger Stafford wrote:

> - - - - - - - - - -
>    Well, you can use this method:
>   p = 0:14;
>   t = find(xx(mod(5*p,15)+floor(p/3)+1)~=0);
> The generalization to any size xx is obvious.  This gives you sequential linear indices in
>  row order in xx.  Now you have to run these back through ind2sub to get the sorted bb.
>  It seems an awfully cumbersome way of sorting.
> Roger Stafford


If the above is actual solution, and you actually understand the question,
then all what I have to say is that you are a true Genius.

My solution was just kidding around, becuase I had no clue at all what
the question was saying :)