<?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: ToneBurst function&#039;s incompatibility with lsim function MATLAB</title>
		<link>http://www.k-wave.org/forum/topic/toneburst-functions-incompatibility-with-lsim-function-matlab</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 15:43:15 +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/toneburst-functions-incompatibility-with-lsim-function-matlab" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "ToneBurst function&#039;s incompatibility with lsim function MATLAB"</title>
			<link>http://www.k-wave.org/forum/topic/toneburst-functions-incompatibility-with-lsim-function-matlab#post-6635</link>
			<pubDate>Tue, 06 Nov 2018 21:49:03 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6635@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi SquaredS,&#60;/p&#62;
&#60;p&#62;I am not familiar with the &#60;code&#62;Isim&#60;/code&#62; function. However, the error message would suggest that adding columns of zero is only correct if the inputs to these channels is zero.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>SquaredS on "ToneBurst function&#039;s incompatibility with lsim function MATLAB"</title>
			<link>http://www.k-wave.org/forum/topic/toneburst-functions-incompatibility-with-lsim-function-matlab#post-6625</link>
			<pubDate>Thu, 01 Nov 2018 01:41:09 +0000</pubDate>
			<dc:creator>SquaredS</dc:creator>
			<guid isPermaLink="false">6625@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello everyone!&#60;/p&#62;
&#60;p&#62; I am new to the world of Matlab and that of Ultrasounds, so please bear with me if my question does not make any sense. &#60;/p&#62;
&#60;p&#62;I am trying to simulate the response of an RLC circuit (electrical equivalent of my piezoelectric device) to a burst signal. To generate this signal I am using the k-wave function ToneBurst. To find the voltage on the resistor I am using lsim which exploits state equations. lsim works fine with step, pulse and sine input, but not with ToneBurst (error: &#34;When simulating the response to a specific input signal, the input data U must be a matrix with as many rows as samples in the time vector T, and as many columns as input channels.&#34;).&#60;/p&#62;
&#60;p&#62;So I tried doing this:&#60;/p&#62;
&#60;p&#62;u = toneBurst(sample_freq, signal_freq,num_cycles);&#60;br /&#62;
signal = transpose(u);&#60;br /&#62;
rowPad=size(t,1)-size(signal,1);&#60;br /&#62;
colPad=0;&#60;br /&#62;
signal=padarray(signal,[rowPad,colPad]);&#60;br /&#62;
signal(1:rowPad,:)=[];&#60;br /&#62;
signal(:,1:colPad)=[];&#60;/p&#62;
&#60;p&#62;and now it *seems* to be working.&#60;/p&#62;
&#60;p&#62;My problem is that I do not know if transposing and zero padding is ok, because it is just a &#34;data format&#34; compatibility problem or if this changes the signal and my simulation is incorrect.&#60;/p&#62;
&#60;p&#62;I am very new to ultrasound so unfortunately I do not now precisely which waveform I should expect.&#60;/p&#62;
&#60;p&#62;Thank you!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
