<?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: invalid conversion from lazy_index to uint16</title>
		<link>http://www.k-wave.org/forum/topic/error-invalid-conversion-from-lazy_index-to-uint16</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:05:38 +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-invalid-conversion-from-lazy_index-to-uint16" rel="self" type="application/rss+xml" />

		<item>
			<title>ahd123 on "error: invalid conversion from lazy_index to uint16"</title>
			<link>http://www.k-wave.org/forum/topic/error-invalid-conversion-from-lazy_index-to-uint16#post-6821</link>
			<pubDate>Wed, 03 Apr 2019 20:17:06 +0000</pubDate>
			<dc:creator>ahd123</dc:creator>
			<guid isPermaLink="false">6821@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Also need to update kspaceFirstOrder_expandGridMatrices.m at lines:&#60;br /&#62;
169&#60;br /&#62;
208&#60;br /&#62;
222
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ahd123 on "error: invalid conversion from lazy_index to uint16"</title>
			<link>http://www.k-wave.org/forum/topic/error-invalid-conversion-from-lazy_index-to-uint16#post-6811</link>
			<pubDate>Thu, 28 Mar 2019 21:20:37 +0000</pubDate>
			<dc:creator>ahd123</dc:creator>
			<guid isPermaLink="false">6811@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Had the same issue. Not sure why the eval function is not working with converting the matrix from double to uint. In fact, if I put a break point there and run that exact command in the debug interpreter it runs without error, without the need to place the &#60;strong&#62;(:)&#60;/strong&#62; (in order to convert the already a column matrix to a column matrix.)&#60;/p&#62;
&#60;p&#62;Just a heads up, this occurs multiple times in kspaceFirstOrder_inputChecking.m and all instances need to be fixed including:&#60;br /&#62;
Line&#60;br /&#62;
852&#60;br /&#62;
854&#60;br /&#62;
952&#60;br /&#62;
954&#60;br /&#62;
1087&#60;br /&#62;
1089&#60;br /&#62;
1138&#60;br /&#62;
1526
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "error: invalid conversion from lazy_index to uint16"</title>
			<link>http://www.k-wave.org/forum/topic/error-invalid-conversion-from-lazy_index-to-uint16#post-6677</link>
			<pubDate>Sun, 09 Dec 2018 21:14:20 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6677@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Thanks everyone for flagging this bug and a work around. We will try and spend some time with Octave in the coming releases to see if compatibility can be improved.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jbishop on "error: invalid conversion from lazy_index to uint16"</title>
			<link>http://www.k-wave.org/forum/topic/error-invalid-conversion-from-lazy_index-to-uint16#post-6630</link>
			<pubDate>Fri, 02 Nov 2018 13:46:14 +0000</pubDate>
			<dc:creator>jbishop</dc:creator>
			<guid isPermaLink="false">6630@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I saw this error; new to octave and don't know why this is the answer, but for example &#60;/p&#62;
&#60;p&#62;kspaceFirstOrder_inputChecking.m&#60;br /&#62;
1526        eval(['sensor_mask_index = ' index_data_type '(sensor_mask_index);']); &#60;/p&#62;
&#60;p&#62;can be edited to &#60;/p&#62;
&#60;p&#62;kspaceFirstOrder_inputChecking.m&#60;br /&#62;
1526        eval(['sensor_mask_index = ' index_data_type '(sensor_mask_index(:));']); &#60;/p&#62;
&#60;p&#62;and it seems to avoid this error
&#60;/p&#62;</description>
		</item>
		<item>
			<title>MCube78 on "error: invalid conversion from lazy_index to uint16"</title>
			<link>http://www.k-wave.org/forum/topic/error-invalid-conversion-from-lazy_index-to-uint16#post-6600</link>
			<pubDate>Wed, 10 Oct 2018 06:06:58 +0000</pubDate>
			<dc:creator>MCube78</dc:creator>
			<guid isPermaLink="false">6600@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Same problem (in Octave). Any solution to &#34;invalid conversion from lazy_index to uint16&#34;?&#60;br /&#62;
cheers
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "error: invalid conversion from lazy_index to uint16"</title>
			<link>http://www.k-wave.org/forum/topic/error-invalid-conversion-from-lazy_index-to-uint16#post-6267</link>
			<pubDate>Thu, 18 Jan 2018 14:20:46 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6267@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Is there a more detailed error stack, for example, the particular function or line of code that crashes?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>toosonix on "error: invalid conversion from lazy_index to uint16"</title>
			<link>http://www.k-wave.org/forum/topic/error-invalid-conversion-from-lazy_index-to-uint16#post-6259</link>
			<pubDate>Wed, 17 Jan 2018 14:00:19 +0000</pubDate>
			<dc:creator>toosonix</dc:creator>
			<guid isPermaLink="false">6259@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Have the same trouble as above. Any solutions....&#60;br /&#62;
Thank you in advance,&#60;br /&#62;
Tomasz
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Raab on "error: invalid conversion from lazy_index to uint16"</title>
			<link>http://www.k-wave.org/forum/topic/error-invalid-conversion-from-lazy_index-to-uint16#post-6226</link>
			<pubDate>Mon, 11 Dec 2017 12:54:21 +0000</pubDate>
			<dc:creator>Raab</dc:creator>
			<guid isPermaLink="false">6226@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Brad,&#60;/p&#62;
&#60;p&#62;ran into the same problem. I would be interested to get it running in Octave.&#60;br /&#62;
Here is the error message.&#60;/p&#62;
&#60;p&#62;Running k-Wave elastic simulation...&#60;br /&#62;
  start time: 11-Dec-2017 12:32:07&#60;br /&#62;
  reference sound speed: 2000m/s&#60;br /&#62;
error: invalid conversion from lazy_index to uint16&#60;/p&#62;
&#60;p&#62;I'm running Octave 4.2.1, k-wave 1.2 on Linux Mint 17.3.&#60;/p&#62;
&#60;p&#62;Best regards,&#60;/p&#62;
&#60;p&#62;Tobias
&#60;/p&#62;</description>
		</item>
		<item>
			<title>kcox on "error: invalid conversion from lazy_index to uint16"</title>
			<link>http://www.k-wave.org/forum/topic/error-invalid-conversion-from-lazy_index-to-uint16#post-5958</link>
			<pubDate>Thu, 25 May 2017 22:04:21 +0000</pubDate>
			<dc:creator>kcox</dc:creator>
			<guid isPermaLink="false">5958@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Brad,&#60;/p&#62;
&#60;p&#62;Don't know how my original download got so corrupted, but re-downloading seems to have done the trick! Sorry about that, and thank you for your help!&#60;/p&#62;
&#60;p&#62;Kailee
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "error: invalid conversion from lazy_index to uint16"</title>
			<link>http://www.k-wave.org/forum/topic/error-invalid-conversion-from-lazy_index-to-uint16#post-5955</link>
			<pubDate>Thu, 25 May 2017 21:14:24 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5955@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi kcox,&#60;/p&#62;
&#60;p&#62;Something definitely isn't correct, as k-Wave should work straight out the box. Can you remove your current modified version from the path, and then download and add a clean version of k-Wave to the path (using &#60;code&#62;addpath&#60;/code&#62; without &#60;code&#62;genpath&#60;/code&#62;). Then try to run one of the included examples, and post the whole error stack. &#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>kcox on "error: invalid conversion from lazy_index to uint16"</title>
			<link>http://www.k-wave.org/forum/topic/error-invalid-conversion-from-lazy_index-to-uint16#post-5951</link>
			<pubDate>Thu, 25 May 2017 17:13:37 +0000</pubDate>
			<dc:creator>kcox</dc:creator>
			<guid isPermaLink="false">5951@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hey Brad,&#60;/p&#62;
&#60;p&#62;I switched over to MATLAB and this problem stopped occurring. However, now I am having a bunch of problems with kspaceFirstOrder3D(). It appears that there was a change in dependency for some functions, or just a lack of some functions defined. I went into the function and tried to hard-code some missing things, but the further I get, the more errors that occur. The primary error is&#60;br /&#62;
'Undefined function or variable 'use_sg'.' There is also an error occurring with use_kspace, plot_layout, and plot_sim. I am using MATLAB R2015b with the most recent K-wave on Windows 10.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "error: invalid conversion from lazy_index to uint16"</title>
			<link>http://www.k-wave.org/forum/topic/error-invalid-conversion-from-lazy_index-to-uint16#post-5949</link>
			<pubDate>Thu, 25 May 2017 16:06:56 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5949@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi kcox,&#60;/p&#62;
&#60;p&#62;I haven't tried k-Wave with Octave for some time. If you use &#60;code&#62;addpath(&#38;#39;D:/Code/K-Wave&#38;#39;)&#60;/code&#62; and run the example, could you post the whole error stack? What OS, Octave, and k-Wave version are you using?&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>kcox on "error: invalid conversion from lazy_index to uint16"</title>
			<link>http://www.k-wave.org/forum/topic/error-invalid-conversion-from-lazy_index-to-uint16#post-5938</link>
			<pubDate>Mon, 22 May 2017 16:46:12 +0000</pubDate>
			<dc:creator>kcox</dc:creator>
			<guid isPermaLink="false">5938@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Trying to run one of the examples in Octave. Added the k-wave folder to my path using addpath(genpath('D:/Code/K-Wave')), so I am not sure where the functions are failing.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
