<?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: Error in mode linear transducer example</title>
		<link>http://www.k-wave.org/forum/topic/error-in-mode-linear-transducer-example</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 21:36: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/error-in-mode-linear-transducer-example" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Error in mode linear transducer example"</title>
			<link>http://www.k-wave.org/forum/topic/error-in-mode-linear-transducer-example#post-9060</link>
			<pubDate>Wed, 20 Mar 2024 20:36:43 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">9060@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Thanks for reporting back. We haven’t played with Octave for a long time, so I’m not sure what the compatibility is like I’m afraid.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>daga_pankaj on "Error in mode linear transducer example"</title>
			<link>http://www.k-wave.org/forum/topic/error-in-mode-linear-transducer-example#post-9031</link>
			<pubDate>Wed, 31 Jan 2024 16:46:15 +0000</pubDate>
			<dc:creator>daga_pankaj</dc:creator>
			<guid isPermaLink="false">9031@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Ok, some more details.&#60;/p&#62;
&#60;p&#62;This seems to be octave related. I got my hands on a Matlab licence and the code works fine.&#60;/p&#62;
&#60;p&#62;Also, the code in Matlab is about 7x times faster than octave.&#60;/p&#62;
&#60;p&#62;Matlab version: 2021b&#60;br /&#62;
Octave: 8.4.0&#60;/p&#62;
&#60;p&#62;System: Apple M2 Pro 32GB OS: Sonoma 14.3
&#60;/p&#62;</description>
		</item>
		<item>
			<title>daga_pankaj on "Error in mode linear transducer example"</title>
			<link>http://www.k-wave.org/forum/topic/error-in-mode-linear-transducer-example#post-9029</link>
			<pubDate>Tue, 30 Jan 2024 19:23:27 +0000</pubDate>
			<dc:creator>daga_pankaj</dc:creator>
			<guid isPermaLink="false">9029@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;The error seems to be coming from this &#60;code&#62;isequal&#60;/code&#62; function comparing whether the source is used as a sensor as well...&#60;/p&#62;
&#60;p&#62;&#60;code&#62;if ~(strcmp(class(sensor), &#38;#39;kWaveTransducer&#38;#39;) &#38;amp;&#38;amp; isequal(sensor, source))&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Also, if I remove this line in the example script:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;transducer.elevation_focus_distance = 19e-3;    % focus distance in the elevation plane [m]&#60;/code&#62; &#60;/p&#62;
&#60;p&#62;Then it seems to not get this error. I am just getting started on this. Can someone explain what impact this might have on the simulation?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>daga_pankaj on "Error in mode linear transducer example"</title>
			<link>http://www.k-wave.org/forum/topic/error-in-mode-linear-transducer-example#post-9024</link>
			<pubDate>Mon, 29 Jan 2024 19:55:43 +0000</pubDate>
			<dc:creator>daga_pankaj</dc:creator>
			<guid isPermaLink="false">9024@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I am trying to run the BMode linear transducer example (in octave) and run into the following error:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Computing scan line 1 of 96
Running k-Wave simulation...
  start time: 29-Jan-2024 19:47:05
  reference sound speed: 1600.5115m/s
  prepending transducer.input_signal with 17 leading zeros
  appending transducer.input_signal with 17 trailing zeros
  dt: 36.075ns, t_end: 57.1429us, time steps: 1585
  input grid size: 216 by 108 by 108 grid points (40 by 20 by 20mm)
  maximum supported frequency: 3.78MHz
  expanding computational grid...
error: elevation_delay_times(0): subscripts must be either integers 1 to (2^63)-1 or logicals
error: called from
    delay_mask at line 1000 column 45
    get.input_signal at line 578 column 28
    isequal at line 86 column 7
    kspaceFirstOrder_expandGridMatrices at line 190 column 12
    kspaceFirstOrder_inputChecking at line 1558 column 5
    kspaceFirstOrder3D at line 574 column 1
    example_us_bmode_linear_transducer at line 242 column 21&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Seems like an indexing issue. I can run most of the other examples in Octave, so this seems like some script error somewhere.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
