<?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: extractAmpPhase and spect</title>
		<link>http://www.k-wave.org/forum/topic/extractampphase-and-spect</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 03:11:33 +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/extractampphase-and-spect" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "extractAmpPhase and spect"</title>
			<link>http://www.k-wave.org/forum/topic/extractampphase-and-spect#post-6579</link>
			<pubDate>Thu, 13 Sep 2018 15:57:59 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6579@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi zhangjinao,&#60;/p&#62;
&#60;p&#62;I haven't run your code, but if you open &#60;code&#62;extractAmpPhase&#60;/code&#62;, that's more or less exactly how it works. However, by default, it also zero pads the FFT and windows the input signal.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>zhangjinao@hotmail.com on "extractAmpPhase and spect"</title>
			<link>http://www.k-wave.org/forum/topic/extractampphase-and-spect#post-6534</link>
			<pubDate>Thu, 26 Jul 2018 08:23:19 +0000</pubDate>
			<dc:creator>zhangjinao@hotmail.com</dc:creator>
			<guid isPermaLink="false">6534@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I computed beam pattern pressure P using the following two ways:&#60;/p&#62;
&#60;p&#62;i) P = extractAmpPhase(sensor_data.p, 1/kgrid.dt, transducer.freq);&#60;br /&#62;
   P = reshape(extracted_P_amp, kgrid.Nx, kgrid.Ny, kgrid.Nz);&#60;br /&#62;
   P = P(:,:,kgrid.Nz/2);&#60;/p&#62;
&#60;p&#62;ii) sensor_P = reshape(sensor_data.p, kgrid.Nx, kgrid.Ny, kgrid.Nz, time_points);&#60;br /&#62;
    sensor_P_xy = sensor_P(:,:,kgrid.Nz/2,:);&#60;br /&#62;
    sensor_P_xy = reshape(sensor_P_xy, kgrid.Nx, kgrid.Ny, time_points);&#60;br /&#62;
    [freq, amp_spect] = spect(sensor_P_xy, 1/kgrid.dt, 'Dim', 3);&#60;br /&#62;
    [f1_value, f1_index] = findClosest(freq, transducer.freq);&#60;br /&#62;
    P = amp_spect(:, :, f1_index);&#60;/p&#62;
&#60;p&#62;I wonder if the above can offer the same results?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
