<?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: &#34;swapability&#34; of impulse source and sensor?</title>
		<link>http://www.k-wave.org/forum/topic/swapability-of-impulse-source-and-sensor</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:40:50 +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/swapability-of-impulse-source-and-sensor" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "&#34;swapability&#34; of impulse source and sensor?"</title>
			<link>http://www.k-wave.org/forum/topic/swapability-of-impulse-source-and-sensor#post-499</link>
			<pubDate>Wed, 09 May 2012 03:42:54 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">499@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Chesteta,&#60;/p&#62;
&#60;p&#62;You should get the same thing directly. Here's a simple example to try:&#60;/p&#62;
&#60;p&#62;clear all;&#60;/p&#62;
&#60;p&#62;% create the computational grid&#60;br /&#62;
PML_size = 20;&#60;br /&#62;
Nx = 128 - 2*PML_size;&#60;br /&#62;
Ny = 128 - 2*PML_size;&#60;br /&#62;
dx = 0.1e-3;&#60;br /&#62;
dy = 0.1e-3;&#60;br /&#62;
kgrid = makeGrid(Nx, dx, Ny, dy);&#60;/p&#62;
&#60;p&#62;% define the properties of the propagation medium&#60;br /&#62;
medium.sound_speed = 1500 + (rand(Nx, Ny) - 0.5)*300;&#60;br /&#62;
medium.density = medium.sound_speed./1.5;&#60;/p&#62;
&#60;p&#62;% define initial pressure distribution and binary sensor mask&#60;br /&#62;
p0 = zeros(Nx, Ny);&#60;br /&#62;
p0(Nx/4, Ny/4) = 1;&#60;br /&#62;
sensor_mask = zeros(Nx, Ny);&#60;br /&#62;
sensor_mask(3*Nx/4, 3*Ny/4) = 1;&#60;/p&#62;
&#60;p&#62;% set simulation options&#60;br /&#62;
input_args = {'LogScale', true, 'DisplayMask', p0 &#124; sensor_mask, ...&#60;br /&#62;
    'PMLInside', false, 'PlotPML', false};&#60;/p&#62;
&#60;p&#62;% assign the source and sensor and run the simulation&#60;br /&#62;
source.p0 = p0;&#60;br /&#62;
sensor.mask = sensor_mask;&#60;br /&#62;
sensor_data_12 = kspaceFirstOrder2D(kgrid, medium, source, sensor, input_args{:});&#60;/p&#62;
&#60;p&#62;% switch the source and sensor and run the simulation again&#60;br /&#62;
source.p0 = sensor_mask;&#60;br /&#62;
sensor.mask = p0;&#60;br /&#62;
sensor_data_21 = kspaceFirstOrder2D(kgrid, medium, source, sensor, input_args{:});&#60;/p&#62;
&#60;p&#62;% plot the impulse response&#60;br /&#62;
figure;&#60;br /&#62;
plot(sensor_data_12, 'k-');&#60;br /&#62;
hold on;&#60;br /&#62;
plot(sensor_data_21, 'r--');&#60;br /&#62;
legend('Impulse Response P1 to  P2', 'Impulse Response P2 to  P1');&#60;/p&#62;
&#60;p&#62;Kind regards,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chesteta on "&#34;swapability&#34; of impulse source and sensor?"</title>
			<link>http://www.k-wave.org/forum/topic/swapability-of-impulse-source-and-sensor#post-487</link>
			<pubDate>Wed, 02 May 2012 00:44:35 +0000</pubDate>
			<dc:creator>Chesteta</dc:creator>
			<guid isPermaLink="false">487@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Thanks for the info! Will I get the same impulses directly, or do I need to do additional processing?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "&#34;swapability&#34; of impulse source and sensor?"</title>
			<link>http://www.k-wave.org/forum/topic/swapability-of-impulse-source-and-sensor#post-481</link>
			<pubDate>Tue, 01 May 2012 01:15:05 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">481@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Chesteta,&#60;/p&#62;
&#60;p&#62;The term you're looking for is &#34;reciprocity&#34;, and the answer is yes. In fact, this idea is already used both experimentally and computationally to derive HRTFs. Two relevant references are &#60;a href=&#34;http://asadl.org/jasa/resource/1/jasman/v120/i4/p2202_s1&#34;&#62;here&#60;/a&#62; and &#60;a href=&#34;http://asadl.org/jasa/resource/1/jasman/v119/i5/p2589_s1&#34;&#62;here&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;Good luck with your simulations!&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chesteta on "&#34;swapability&#34; of impulse source and sensor?"</title>
			<link>http://www.k-wave.org/forum/topic/swapability-of-impulse-source-and-sensor#post-480</link>
			<pubDate>Tue, 01 May 2012 00:30:26 +0000</pubDate>
			<dc:creator>Chesteta</dc:creator>
			<guid isPermaLink="false">480@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello, this is more of a 'general wave theory' question:&#60;br /&#62;
I am trying to create head-related transfer functions (impulse responses) using CT scan data of my head, by setting a point source of pressure and measuring within the ear canal of the model.  I figure it would be more computationally efficient to reverse the process and use many sensors placed around the head and create an impulse inside of the ear (so I can measure impulse responses from many angles at once), does this 'work' on the physics side of things?&#60;/p&#62;
&#60;p&#62;More plainly: can one swap an impulse source and the sensor in the model and achieve the same impulse response? - if not the same impulse response, would the frequency response at least be the same? &#60;/p&#62;
&#60;p&#62;From setting up sub-woofers, I know that one way to do it is to set the sub-woofer in the listening position and then crawl around and find where the bass 'sounds good' (has an even frequency response) - my thinking is that this applies to all frequencies...&#60;/p&#62;
&#60;p&#62;Thanks for your knowledge and help!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
