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 14:39:08 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 3
Message-ID: <jbt6ic$5ik$>
References: <jbr8s0$3j5$> <jbrl20$b1b$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1323441548 5716 (9 Dec 2011 14:39:08 GMT)
NNTP-Posting-Date: Fri, 9 Dec 2011 14:39:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2372446
Xref: comp.soft-sys.matlab:751946

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.