<?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: Sensor matrix full of NAN</title>
		<link>http://www.k-wave.org/forum/topic/sensor-matrix-full-of-nan</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 01:51:41 +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/sensor-matrix-full-of-nan" rel="self" type="application/rss+xml" />

		<item>
			<title>otyunis on "Sensor matrix full of NAN"</title>
			<link>http://www.k-wave.org/forum/topic/sensor-matrix-full-of-nan#post-8396</link>
			<pubDate>Mon, 20 Dec 2021 17:50:07 +0000</pubDate>
			<dc:creator>otyunis</dc:creator>
			<guid isPermaLink="false">8396@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Quick update: I realized that the minimum density in my original map was not in kg/m^3, after fixing, the sim runs well.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>otyunis on "Sensor matrix full of NAN"</title>
			<link>http://www.k-wave.org/forum/topic/sensor-matrix-full-of-nan#post-8395</link>
			<pubDate>Mon, 20 Dec 2021 16:51:02 +0000</pubDate>
			<dc:creator>otyunis</dc:creator>
			<guid isPermaLink="false">8395@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Thank you for the lead, Brad! &#60;/p&#62;
&#60;p&#62;There is an instability of some sort, but bumping down the time step/CFl did not help in my case (e.g., I decreased the CFL by factor of 100 to no avail). Interestingly, it seems that the low density values in my heterogeneous maps may be the cause. Keeping everything the same, but bumping up those lower density values results in signals that I expect (i.e., no NaN values in my dataset). Do you have an idea of why this may be the case? FYI - my map's density initially ranged from approx. 1-2500 kg/m^3, and sound speed ranged from approx. 1400-2500 kg/m^3. &#60;/p&#62;
&#60;p&#62;Best regards,&#60;br /&#62;
Omar
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Sensor matrix full of NAN"</title>
			<link>http://www.k-wave.org/forum/topic/sensor-matrix-full-of-nan#post-8369</link>
			<pubDate>Thu, 16 Dec 2021 10:48:09 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">8369@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Omar,&#60;/p&#62;
&#60;p&#62;Generally NaNs suggest an instability, so I would start there by making your time step (or equivalently the CFL) smaller.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>otyunis on "Sensor matrix full of NAN"</title>
			<link>http://www.k-wave.org/forum/topic/sensor-matrix-full-of-nan#post-8339</link>
			<pubDate>Wed, 10 Nov 2021 15:39:50 +0000</pubDate>
			<dc:creator>otyunis</dc:creator>
			<guid isPermaLink="false">8339@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi, &#60;/p&#62;
&#60;p&#62;I am running into a similar problem, but I am not using the transducer class with apodization. I am collecting a synthetic aperture dataset using an array of pressure sources and the same array of sensors. I.e., for each transmit event I am running kspaceFirstOrder2DG() for a single active source element and collecting on all sensor elements. It seems to work for some smaller sims, but for my larger sim my sensor traces have a few nonzero values followed by only NaN. I don't know if the above solution will help in my case? Hoping you can help me discern what is going wrong, thanks!&#60;/p&#62;
&#60;p&#62;Best regards,&#60;br /&#62;
Omar
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Sensor matrix full of NAN"</title>
			<link>http://www.k-wave.org/forum/topic/sensor-matrix-full-of-nan#post-4957</link>
			<pubDate>Fri, 23 Jan 2015 10:10:14 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4957@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Gg,&#60;/p&#62;
&#60;p&#62;Sorry for taking so long to get back to you. It seems you have discovered a small bug in k-Wave. When you set a transmit or receive apodization with only one active element in the transducer, &#60;code&#62;getWin&#60;/code&#62; may return &#60;code&#62;NaN&#60;/code&#62; (this depends on the exact distribution selected). This is what is happening in your code. For an apodization of &#60;code&#62;&#38;#39;Hanning&#38;#39;&#60;/code&#62;, the apodization values used within the code are set to &#60;code&#62;NaN&#60;/code&#62;. I have fixed this for the next release. In the meantime, I'd suggest setting the apodization to &#60;code&#62;&#38;#39;Rectangular&#38;#39;&#60;/code&#62; (the default), or setting the numerical apodization values manually. For a single active element, the apodization is not meaningful in any case.&#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gigi on "Sensor matrix full of NAN"</title>
			<link>http://www.k-wave.org/forum/topic/sensor-matrix-full-of-nan#post-4921</link>
			<pubDate>Wed, 24 Dec 2014 18:07:47 +0000</pubDate>
			<dc:creator>gigi</dc:creator>
			<guid isPermaLink="false">4921@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi all,&#60;br /&#62;
I have a problem of NAN in my example_us_bmode_linear_transducer_modified.m that can be downloaded from here:&#60;br /&#62;
&#60;a href=&#34;https://www.dropbox.com/s/v5bfybo4i3n36f5/example_us_bmode_linear_transducer_modified.m?dl=0&#34; rel=&#34;nofollow&#34;&#62;https://www.dropbox.com/s/v5bfybo4i3n36f5/example_us_bmode_linear_transducer_modified.m?dl=0&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The problem is with sensor matrix at line 291 that is full of NAN,&#60;br /&#62;
but for me is not clear the cause.&#60;/p&#62;
&#60;p&#62;thank you so much for your help.&#60;/p&#62;
&#60;p&#62;Gg
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
