<?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: Heterogeneous medium simulation</title>
		<link>http://www.k-wave.org/forum/topic/heterogeneous-medium-simulation</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:07:19 +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/heterogeneous-medium-simulation" rel="self" type="application/rss+xml" />

		<item>
			<title>ChiaChin Li on "Heterogeneous medium simulation"</title>
			<link>http://www.k-wave.org/forum/topic/heterogeneous-medium-simulation#post-124</link>
			<pubDate>Thu, 24 Mar 2011 09:19:17 +0000</pubDate>
			<dc:creator>ChiaChin Li</dc:creator>
			<guid isPermaLink="false">124@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Bradley,&#60;/p&#62;
&#60;p&#62;After replace the kspaceFirstOrder_filterSensorData.m file, it can work as I expect.&#60;/p&#62;
&#60;p&#62;Thank you very much!&#60;/p&#62;
&#60;p&#62;Best Regard.&#60;br /&#62;
Chia-Chin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Heterogeneous medium simulation"</title>
			<link>http://www.k-wave.org/forum/topic/heterogeneous-medium-simulation#post-123</link>
			<pubDate>Thu, 24 Mar 2011 08:19:37 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">123@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Chia-Chin,&#60;/p&#62;
&#60;p&#62;It seems there is a bug in &#60;code&#62;kspaceFirstOrder_filterSensorData&#60;/code&#62; when &#60;code&#62;kgrid.t_array&#60;/code&#62; has an odd number of time points. You can download an updated version from here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.k-wave.org/downloads/kspaceFirstOrder_filterSensorData.m&#34;&#62;kspaceFirstOrder_filterSensorData.m&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Try downloading the function and replacing the existing one in the private folder in the k-Wave Toolbox. Alternatively, as a work around you could force &#60;code&#62;kgrid.t_array&#60;/code&#62; to have an even number of time points.&#60;/p&#62;
&#60;p&#62;Let me know if this fixes the problem for you.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ChiaChin Li on "Heterogeneous medium simulation"</title>
			<link>http://www.k-wave.org/forum/topic/heterogeneous-medium-simulation#post-122</link>
			<pubDate>Thu, 24 Mar 2011 06:26:41 +0000</pubDate>
			<dc:creator>ChiaChin Li</dc:creator>
			<guid isPermaLink="false">122@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Bradley,&#60;/p&#62;
&#60;p&#62;I do simulation modified from eterogeneous Propagation Medium Example. And I use MATLAB 7.10.0 (R2010a) and k-Wave toolbox b03.&#60;/p&#62;
&#60;p&#62;I tried adding the line you said&#60;/p&#62;
&#60;p&#62;sensor.frequency_response = [2e6, 100];&#60;/p&#62;
&#60;p&#62;to Heterogeneous Propagation Medium Example. It could work successfully.&#60;br /&#62;
And I tried to add those lines:&#60;/p&#62;
&#60;p&#62;fs = 200e6; % [Hz]&#60;br /&#62;
dt = 1/fs;&#60;br /&#62;
t_end = 604*2*dt;&#60;br /&#62;
kgrid.t_array = 0:dt:t_end;&#60;/p&#62;
&#60;p&#62;to fix sampling rate. Then the error showed up again. In the Heterogeneous Propagation Medium Example, the size of sensor_data is 50x608. And one of the line I mention before:&#60;/p&#62;
&#60;p&#62;t_end = 604*2*dt;&#60;/p&#62;
&#60;p&#62;Once the number multiply dt over 607, the error will occur. But I need longer kgrid.t_array to record the simulation result.&#60;br /&#62;
Hope you can help me to solve those problem.&#60;/p&#62;
&#60;p&#62;Thanks!&#60;br /&#62;
Chia-Chin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Heterogeneous medium simulation"</title>
			<link>http://www.k-wave.org/forum/topic/heterogeneous-medium-simulation#post-120</link>
			<pubDate>Wed, 23 Mar 2011 22:04:30 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">120@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Chia-Chin,&#60;/p&#62;
&#60;p&#62;Thanks for your post. Are you doing a simulation in 1, 2, or 3D? What are your inputs? What version of MATLAB and k-Wave are you using?&#60;/p&#62;
&#60;p&#62;If you try adding the line&#60;/p&#62;
&#60;p&#62;&#60;code&#62;sensor.frequency_response = [2e6, 100];&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;to the Initial Value Problems -&#38;gt; Heterogeneous Propagation Medium Example just before running the simulation, do you also get the same error?&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ChiaChin Li on "Heterogeneous medium simulation"</title>
			<link>http://www.k-wave.org/forum/topic/heterogeneous-medium-simulation#post-119</link>
			<pubDate>Wed, 23 Mar 2011 08:15:10 +0000</pubDate>
			<dc:creator>ChiaChin Li</dc:creator>
			<guid isPermaLink="false">119@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;hi,&#60;/p&#62;
&#60;p&#62;I want to make a heterogeneous medium simulation with sensors of Gaussian freq response. but once i add sensor.frequency_response into my simulation, there will be a error about dimensions mismatch:&#60;br /&#62;
Error in ==&#38;gt; kspaceFirstOrder_filterSensorData at 41&#60;br /&#62;
    sensor_data = fft(sensor_data, [], 2).*repmat([gauss, flipud(gauss)], length(sensor_data(:, 1)), 1);&#60;br /&#62;
Could you tell me how to solve this problem?&#60;/p&#62;
&#60;p&#62;Thanks a lot!&#60;br /&#62;
Chia-Chin
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
