<?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</title>
		<link>http://www.k-wave.org/forum/topic/error-in-kspacefirstorder2d</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Fri, 15 May 2026 06:34:40 +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" rel="self" type="application/rss+xml" />

		<item>
			<title>dvirzonis on "Error in kspaceFirstOrder2D"</title>
			<link>http://www.k-wave.org/forum/topic/error-in-kspacefirstorder2d#post-8308</link>
			<pubDate>Mon, 13 Sep 2021 11:18:37 +0000</pubDate>
			<dc:creator>dvirzonis</dc:creator>
			<guid isPermaLink="false">8308@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Solved the issue by changing the Matlab path setup. The path line of the k-wave library has to precede all the other toolboxes:&#60;/p&#62;
&#60;p&#62;&#38;gt;&#38;gt;oldpath=path;&#60;br /&#62;
&#38;gt;&#38;gt;path('C:\Users....\k-Wave',oldpath)&#60;/p&#62;
&#60;p&#62;Possibly this is preventing some confusion between original Matlab functions and k-wave's functions.&#60;/p&#62;
&#60;p&#62;D
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dvirzonis on "Error in kspaceFirstOrder2D"</title>
			<link>http://www.k-wave.org/forum/topic/error-in-kspacefirstorder2d#post-8307</link>
			<pubDate>Mon, 13 Sep 2021 07:58:28 +0000</pubDate>
			<dc:creator>dvirzonis</dc:creator>
			<guid isPermaLink="false">8307@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello.&#60;br /&#62;
Just installed the k-wave (latest version) on Matlab R2016a and trying to run a &#34;Homogeneous Propagation Medium Example&#34;.&#60;br /&#62;
It produces the following error message:&#60;/p&#62;
&#60;p&#62;Error using  .*&#60;br /&#62;
Matrix dimensions must agree.&#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 .*&#60;br /&#62;
        fft2(p)) )) / 2;&#60;/p&#62;
&#60;p&#62;Error in example_ivp_binary_sensor_mask (line 69)&#60;br /&#62;
sensor_data = kspaceFirstOrder2D(kgrid, medium, source, sensor);&#60;/p&#62;
&#60;p&#62;Error in run (line 96)&#60;br /&#62;
evalin('caller', [script ';']);&#60;/p&#62;
&#60;p&#62;Any suggestions or advice?&#60;br /&#62;
Regards&#60;br /&#62;
Darius
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
