<?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: Make a diagonal rod in kwave</title>
		<link>http://www.k-wave.org/forum/topic/make-a-diagonal-rod-in-kwave</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 16:25:24 +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/make-a-diagonal-rod-in-kwave" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Make a diagonal rod in kwave"</title>
			<link>http://www.k-wave.org/forum/topic/make-a-diagonal-rod-in-kwave#post-6169</link>
			<pubDate>Thu, 26 Oct 2017 09:47:29 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6169@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Karl,&#60;/p&#62;
&#60;p&#62;If you have the imaging processing toolbox, one approach would be to make a vertical rod, and then rotate the matrix using &#60;code&#62;imrotate&#60;/code&#62;.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>kkratkiewicz on "Make a diagonal rod in kwave"</title>
			<link>http://www.k-wave.org/forum/topic/make-a-diagonal-rod-in-kwave#post-6161</link>
			<pubDate>Mon, 23 Oct 2017 18:05:34 +0000</pubDate>
			<dc:creator>kkratkiewicz</dc:creator>
			<guid isPermaLink="false">6161@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello!&#60;/p&#62;
&#60;p&#62;I am working to simulate various shapes in kwave with hemispherical transducer arrays. I have code for defining a single vertical rod, but how would I rotate this rod say 45 degrees towards +x axis?&#60;/p&#62;
&#60;p&#62;The code for the single rod is:&#60;br /&#62;
source_radius = Nx/6;&#60;br /&#62;
magnitude = 5;&#60;/p&#62;
&#60;p&#62;ball_magnitude = 0;    % [Pa]&#60;/p&#62;
&#60;p&#62;ball1_x_pos = Nx/2;        % [grid points]&#60;br /&#62;
ball1_y_pos = Ny/2;        % [grid points]&#60;br /&#62;
ball1_z_pos = Nz/2;        % [grid points]&#60;br /&#62;
ball1_radius = 10;        % [grid points]&#60;br /&#62;
ball_1 = ball_magnitude*makeBall(Nx, Ny, Nz, ball1_x_pos, ball1_y_pos, ball1_z_pos, ball1_radius);&#60;br /&#62;
p0 = ball_1;&#60;br /&#62;
p0(round(Nx/2)-1:...&#60;br /&#62;
        round(Nx/2)+1,round(Ny/2)-1:...&#60;br /&#62;
        round(Ny/2)+1,round(Nz/2-source_radius):...&#60;br /&#62;
        round(Nz/2+source_radius) ) = magnitude;&#60;/p&#62;
&#60;p&#62;Thanks!&#60;br /&#62;
Karl
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
