Path: news.mathworks.com!newsfeed-00.mathworks.com!kanaga.switch.ch!switch.ch!feeder.news-service.com!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!.POSTED!not-for-mail
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: Aioe.org NNTP Server
Lines: 23
Message-ID: <iodva4$4hp$1@speranza.aioe.org>
References: <iodovc$3b3$1@fred.mathworks.com> <iodubs$fts$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: tUYQ4Ty9mMw9Pdc8TJRFQA.user.speranza.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9
X-Notice: Filtered by postfilter v. 0.8.2
Xref: news.mathworks.com 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

Roger,

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 :)

--Nasser