Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: replacing NaN based on a specific moving window
Date: Mon, 2 Mar 2009 19:50:17 +0000 (UTC)
Organization: CSU
Lines: 6
Message-ID: <gohd9p$g40$1@fred.mathworks.com>
References: <go9m4h$jvs$1@fred.mathworks.com> <go9mn8$sot$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1236023417 16512 172.30.248.38 (2 Mar 2009 19:50:17 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 2 Mar 2009 19:50:17 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 951788
Xref: news.mathworks.com comp.soft-sys.matlab:521969


Thanks for the tip, but it seems the one I want. Michael
"Image Analyst" <imageanalyst@mailinator.com> wrote in message <go9mn8$sot$1@fred.mathworks.com>...
> Kuo-Hsien, Michael
> Take a look at the convolution function, conv.  I'm not sure but maybe it will ignore nan's and give you the means.  If it does, then just find the nan's in the original matrix and replace them with the values from the convolved matrix.
> Regards,
> ImageAnalyst