<?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: 3D case with non-equal dimensions fails to run?</title>
		<link>http://www.k-wave.org/forum/topic/3d-case-with-non-equal-dimensions-fails-to-run</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 22:02:51 +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/3d-case-with-non-equal-dimensions-fails-to-run" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "3D case with non-equal dimensions fails to run?"</title>
			<link>http://www.k-wave.org/forum/topic/3d-case-with-non-equal-dimensions-fails-to-run#post-63</link>
			<pubDate>Wed, 22 Sep 2010 18:42:04 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">63@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi jkiv,&#60;/p&#62;
&#60;p&#62;Thanks for your feedback, I'm glad you got your example to run. Please let us know if you have any more questions.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jkiv on "3D case with non-equal dimensions fails to run?"</title>
			<link>http://www.k-wave.org/forum/topic/3d-case-with-non-equal-dimensions-fails-to-run#post-62</link>
			<pubDate>Wed, 22 Sep 2010 17:21:20 +0000</pubDate>
			<dc:creator>jkiv</dc:creator>
			<guid isPermaLink="false">62@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Good day,&#60;/p&#62;
&#60;p&#62;I'm trying to run a 3D example whose dimensions are non-equal.  I'm trying 64x32x16 but during sound-speed/density smoothing the following term fails (in smooth.m):&#60;/p&#62;
&#60;p&#62;&#60;code&#62;f_sm = abs(ifftn(fftshift(fftshift(fftn(f)).*Hann_filt)));&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;The issue is &#60;code&#62;Hann_filt&#60;/code&#62; is 16x64x32 whereas &#60;code&#62;f&#60;/code&#62; is 64x32x16 and thus the &#60;code&#62;.*&#60;/code&#62; fails.&#60;/p&#62;
&#60;p&#62;I might be setting up my data wrong and I'd like assurance from the developers that smooth.m is correct for the 3D case.  This is how I'm setting up my data:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;% physical dimensions
X = 1e-2; % m
Y = X;
Z = X;

% resolution
Nx = 64;  % points
Ny = 32;
Nz = 16;

% dimensions per pixel
dx = X/Nx;
dy = Y/Ny;
dz = Z/Nz;

kgrid = makeGrid(Nx, dx, Ny, dy, Nz, dz);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and my c, rho, etc. are made to be 64x32x16 (e.g. &#60;code&#62;1500*ones(64,32,16)&#60;/code&#62;).&#60;/p&#62;
&#60;p&#62;Any ideas?&#60;br /&#62;
Thanks in advance!&#60;/p&#62;
&#60;p&#62;EDIT: I re-visited the provided examples for 3D (which I originally dismissed because they were equal dimensions) and the c, rho, etc. are made with &#60;code&#62;Nz x Nx x Ny&#60;/code&#62; and not &#60;code&#62;Nx x Ny x Nz&#60;/code&#62;.  I've done the same and it remedied the situation.  Thanks.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
