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$>
References: <jbr8s0$3j5$> <jbrl20$b1b$> <jbt6ic$5ik$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1323443588 13274 (9 Dec 2011 15:13:08 GMT)
NNTP-Posting-Date: Fri, 9 Dec 2011 15:13:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1440443
Xref: comp.soft-sys.matlab:751955

"William Frane" wrote in message <jbt6ic$5ik$>...
> 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.