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

		<item>
			<title>Bradley Treeby on "Presure profile"</title>
			<link>http://www.k-wave.org/forum/topic/presure-profile#post-7231</link>
			<pubDate>Wed, 12 Feb 2020 16:17:05 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">7231@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Kai,&#60;/p&#62;
&#60;p&#62;You can do this by creating &#60;code&#62;source.p&#60;/code&#62; to have the same number of time series as elements in your source mask. For example, you can pass a vector or matrix of amplitudes to &#60;code&#62;createCWSignals&#60;/code&#62; and then reshape this to assign to source.p.&#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>kai.rieger on "Presure profile"</title>
			<link>http://www.k-wave.org/forum/topic/presure-profile#post-7202</link>
			<pubDate>Mon, 03 Feb 2020 15:11:23 +0000</pubDate>
			<dc:creator>kai.rieger</dc:creator>
			<guid isPermaLink="false">7202@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello Brad,&#60;br /&#62;
the transducer is a matrix of 1s and 0s created with the command makeLine. That means there is a hard transition at the edge of the source (1 -&#38;gt; 0) and the produces side lobes. The real source has a smooth transition at the edges and therefore no side lobes. For me, it would be nice to chose values between 0 and 1 to build a realistic source.&#60;/p&#62;
&#60;p&#62;Best Regards,&#60;br /&#62;
Kai
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Presure profile"</title>
			<link>http://www.k-wave.org/forum/topic/presure-profile#post-7182</link>
			<pubDate>Mon, 20 Jan 2020 17:45:06 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">7182@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Kai,&#60;/p&#62;
&#60;p&#62;The input to source.p_mask must be binary, i.e., a matrix of 1s and 0s. What is the value of &#60;code&#62;transducer&#60;/code&#62; in your script?&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>kai.rieger on "Presure profile"</title>
			<link>http://www.k-wave.org/forum/topic/presure-profile#post-7119</link>
			<pubDate>Wed, 06 Nov 2019 14:21:58 +0000</pubDate>
			<dc:creator>kai.rieger</dc:creator>
			<guid isPermaLink="false">7119@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;a small addition to my contribution, when I use source.p0, I can use the presure profile but than it is just a puls and not a toneBurst.&#60;/p&#62;
&#60;p&#62;Best Regards,&#60;br /&#62;
Kai
&#60;/p&#62;</description>
		</item>
		<item>
			<title>kai.rieger on "Presure profile"</title>
			<link>http://www.k-wave.org/forum/topic/presure-profile#post-7117</link>
			<pubDate>Wed, 06 Nov 2019 12:48:41 +0000</pubDate>
			<dc:creator>kai.rieger</dc:creator>
			<guid isPermaLink="false">7117@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I try to simulate a pressure source where all source points should have a certain amplitude. I calculated the pressure profile of my ultrasonic transducer and stored it in a 2D array with values between 0 and 1.&#60;br /&#62;
Unfortunately I received the following error message:&#60;br /&#62;
&#34;If using a labelled source.p_mask, the source labels must be monotonically increasing and start from 1.&#34;&#60;/p&#62;
&#60;p&#62;If I understand the error message correctly, then it doesn't work the way I try. Is there any other way to do this?&#60;/p&#62;
&#60;p&#62;I use the following commands:&#60;/p&#62;
&#60;p&#62;%transducer is a 2D array with values between 0-1.&#60;br /&#62;
source.p_mask = transducer;&#60;br /&#62;
source.p = toneBurst(source_envelope, tone_burst_freq, tone_burst_cycles, 'Plot', true);&#60;/p&#62;
&#60;p&#62;Thank you very much for your help!&#60;/p&#62;
&#60;p&#62;Best Regards,&#60;br /&#62;
Kai
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
