<?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 kspaceFirstOrder2D (line 920)</title>
		<link>http://www.k-wave.org/forum/topic/error-in-kspacefirstorder2d-line-920</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 22:00:27 +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-kspacefirstorder2d-line-920" rel="self" type="application/rss+xml" />

		<item>
			<title>donghunk on "Error in kspaceFirstOrder2D (line 920)"</title>
			<link>http://www.k-wave.org/forum/topic/error-in-kspacefirstorder2d-line-920#post-9045</link>
			<pubDate>Mon, 04 Mar 2024 07:30:29 +0000</pubDate>
			<dc:creator>donghunk</dc:creator>
			<guid isPermaLink="false">9045@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I also encountered this error, and my solution was to move the K-wave toolbox higher in the add-on search order. In 2023b, go to the &#34;Home&#34; tab ==&#38;gt; click on &#34;Set Path&#34; (under the &#34;Preferences&#34; tab) ==&#38;gt; select all K-wave-related paths ==&#38;gt; click the &#34;Move to Top&#34; button ==&#38;gt; save ==&#38;gt; close.&#60;/p&#62;
&#60;p&#62;Given that I did not want to uninstall the curve fitting toolbox, this seemed like a decent compromise, but I'm not sure how it will affect my use of the curve fitting toolbox. The first example in the cf toolbox's example code for the &#60;code&#62;smooth&#60;/code&#62; function seems to work for snow, but given that I have not used that function directly before, perhaps it will cause issues later on.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Error in kspaceFirstOrder2D (line 920)"</title>
			<link>http://www.k-wave.org/forum/topic/error-in-kspacefirstorder2d-line-920#post-9015</link>
			<pubDate>Wed, 24 Jan 2024 11:28:59 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">9015@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Are you running an initial value problem with smoothing turned on, and have the curve fitting toolbox? There can sometimes be a clash between the &#60;code&#62;smooth&#60;/code&#62; function in k-Wave and the &#60;code&#62;smooth&#60;/code&#62; function in this toolbox. If that's the case, try removing the curve fitting toolbox from the path when running k-Wave.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>afshinsadri on "Error in kspaceFirstOrder2D (line 920)"</title>
			<link>http://www.k-wave.org/forum/topic/error-in-kspacefirstorder2d-line-920#post-8998</link>
			<pubDate>Tue, 02 Jan 2024 22:45:32 +0000</pubDate>
			<dc:creator>afshinsadri</dc:creator>
			<guid isPermaLink="false">8998@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello Guys&#60;/p&#62;
&#60;p&#62;I have this below error. Does anyone know how to fix this error?&#60;/p&#62;
&#60;p&#62;Arrays have incompatible sizes for this operation.&#60;/p&#62;
&#60;p&#62;Error in kspaceFirstOrder2D (line 920)&#60;br /&#62;
        ux_sgx = dt .* rho0_sgx_inv .* real(ifft2( bsxfun(@times, ddx_k_shift_pos, kappa .* fft2(p)) )) / 2;&#60;/p&#62;
&#60;p&#62;Error in Prac01 (line 41)&#60;br /&#62;
recorded_data = kspaceFirstOrder2D(kgrid,medium,source,sensor);
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
