Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Replace one or more occurrences of a certain value with the value preceding the first occurrence
Date: Fri, 9 Dec 2011 15:13:08 +0000 (UTC)
Organization: Xoran Technologies
Lines: 6
Message-ID: <jbt8i4$cuq$1@newscl01ah.mathworks.com>
References: <jbr8s0$3j5$1@newscl01ah.mathworks.com> <jbrl20$b1b$1@newscl01ah.mathworks.com> <jbt6ic$5ik$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1323443588 13274 172.30.248.37 (9 Dec 2011 15:13:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 9 Dec 2011 15:13:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1440443
Xref: news.mathworks.com comp.soft-sys.matlab:751955

"William Frane" wrote in message <jbt6ic$5ik$1@newscl01ah.mathworks.com>...
>
> Thanks for the suggestions, everyone. I think I'll go with Bruno's histc method, although Matt's image processing method is interesting as well.
===============

I tend to think, though, that a for-loop will beat either of these suggestions in terms of speed.