Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!newsfe07.iad.POSTED!7564ea0f!not-for-mail
From: Walter Roberson <roberson@hushmail.com>
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2
MIME-Version: 1.0
Newsgroups: comp.soft-sys.matlab
Subject: Re: no_repeated_digits_in_row
References: <i5fjq1$spb$1@fred.mathworks.com>
In-Reply-To: <i5fjq1$spb$1@fred.mathworks.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 31
Message-ID: <2APeo.103263$xZ2.62963@newsfe07.iad>
NNTP-Posting-Host: 24.79.143.47
X-Complaints-To: internet.abuse@sjrb.ca
X-Trace: newsfe07.iad 1283179902 24.79.143.47 (Mon, 30 Aug 2010 14:51:42 UTC)
NNTP-Posting-Date: Mon, 30 Aug 2010 14:51:42 UTC
Date: Mon, 30 Aug 2010 09:51:42 -0500
Xref: news.mathworks.com comp.soft-sys.matlab:666172

On 30/08/10 1:41 AM, Kate wrote:

> I have matrix =
> A = [ 10 10 4 ;
> 3 2 1 ;
> 67 5 5;
> 45 38 9
> 1 6 3]
>
> I want the output such that it 'filters' rows where there are NO
> repeated digits within that row.

In your examples (here and in your follow-ups), each row that you 
filtered out had two entries with the same numeric value. In the 
examples you gave, each row that you filtered out also had two values 
that happened to contain the same decimal digits (e.g. the '1' of the 
first '10' is the same as the '1' of the second '10'). Your examples 
thus do not make it clear whether you want to work at the level of 
numeric value or the level of decimal digits.

Either way, we should also inquire as to whether the entries you are 
working with are _certain_ to be integers (e.g., they are of integer 
data type or you have round() or fix() or floor() or ceil() them). If 
they are not certain to be exact integers, then there is the possibility 
that two entries might display the same but be different values in the 
low level bits, and you should be considering whether entry-wise value 
comparison should have a tolerance; likewise if your values are not 
certain to be exact integers and you are working on the basis of decimal 
digits, then you need to be aware that when converted in to its _full_ 
decimal expansion, a value that is not exactly an integer is often 55 
digits or so (which would be certain to have repeated digits internally.)