<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>k-Wave User Forum &#187; Topic: Smoothing Signal</title>
		<link>http://www.k-wave.org/forum/topic/smoothing-signal-1</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 04:35:05 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.k-wave.org/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.k-wave.org/forum/rss/topic/smoothing-signal-1" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Smoothing Signal"</title>
			<link>http://www.k-wave.org/forum/topic/smoothing-signal-1#post-4540</link>
			<pubDate>Thu, 22 May 2014 16:03:03 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4540@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Mehran,&#60;/p&#62;
&#60;p&#62;To use &#60;code&#62;smooth&#60;/code&#62;, you should use the following syntax:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;x = rand(100, 1);
y = smooth(makeGrid(100, 1), x);
plot(x, &#38;#39;k-&#38;#39;); hold on; plot(y, &#38;#39;b-&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The filter (a Blackman window by default) is normalised in frequency space, so it doesn't depend on what grid spacing you use for &#60;code&#62;makeGrid&#60;/code&#62;. You could do same thing more directly by defining your own window. For example:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;x = rand(100, 1);
win = getWin(100, &#38;#39;Blackman&#38;#39;);
y = real(ifft(ifftshift(win).*fft(x)));
plot(x, &#38;#39;k-&#38;#39;); hold on; plot(y, &#38;#39;b-&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mehran-kiani on "Smoothing Signal"</title>
			<link>http://www.k-wave.org/forum/topic/smoothing-signal-1#post-4529</link>
			<pubDate>Wed, 21 May 2014 18:21:41 +0000</pubDate>
			<dc:creator>mehran-kiani</dc:creator>
			<guid isPermaLink="false">4529@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
At first, I congratulate for your perfect toolbox that is sufficiently to help me &#38;amp; other.&#60;br /&#62;
I want to smooth my 3251*1 signal with Fastsmooth function, but I not familiar with  makegrid and get the below error after run the command : &#60;/p&#62;
&#60;p&#62;??? Error using ==&#38;gt; times&#60;br /&#62;
Matrix dimensions must agree.&#60;/p&#62;
&#60;p&#62;Error in ==&#38;gt; smooth at 83&#60;br /&#62;
mat_sm = real(ifftn(fftn(mat).*ifftshift(win)));&#60;/p&#62;
&#60;p&#62;My signal delta or sample rate is 0.02 s.&#60;/p&#62;
&#60;p&#62;Pls, help me for define proper kgrid to smooth my signal.&#60;/p&#62;
&#60;p&#62;Best Regards&#60;br /&#62;
Mehran
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
