<?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: Cartesian Co-Ordinate and Kgrid Points</title>
		<link>http://www.k-wave.org/forum/topic/cartesian-co-ordinate-and-kgrid-points-1</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 01:12:39 +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/cartesian-co-ordinate-and-kgrid-points-1" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Cartesian Co-Ordinate and Kgrid Points"</title>
			<link>http://www.k-wave.org/forum/topic/cartesian-co-ordinate-and-kgrid-points-1#post-4893</link>
			<pubDate>Fri, 12 Dec 2014 12:25:34 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4893@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Zia,&#60;/p&#62;
&#60;p&#62;You can calculate this using some simple trigonometry. If the sensor is positioned with grid coordinates &#60;code&#62;[x, y]&#60;/code&#62;, the position of the source (in grid points) will be &#60;code&#62;round([x + R*cos(theta), y + R*sin(theta)])&#60;/code&#62; (or similar, depending on how you define your angles).&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>zia.roghani on "Cartesian Co-Ordinate and Kgrid Points"</title>
			<link>http://www.k-wave.org/forum/topic/cartesian-co-ordinate-and-kgrid-points-1#post-4880</link>
			<pubDate>Tue, 09 Dec 2014 14:46:05 +0000</pubDate>
			<dc:creator>zia.roghani</dc:creator>
			<guid isPermaLink="false">4880@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Bradley Treeby,&#60;br /&#62;
Thank you so much for looking into the problem. Your help is always to the point.please look into the following,&#60;/p&#62;
&#60;p&#62;Nx=100;&#60;br /&#62;
Ny=100;&#60;br /&#62;
dx=1;&#60;br /&#62;
dy=1;&#60;br /&#62;
kgrid= makeGrid(Nx, dx, Ny, dy);&#60;/p&#62;
&#60;p&#62;for above are the following correct.orign (0,0) is at Nx=Ny=51;&#60;br /&#62;
the coordinate of the first quardent   Nx=1  upto 51, and Ny=51 upto 100;&#60;br /&#62;
the coordinate of the second quardent  Nx=1  upto 51,  and Ny=1 upto 51;&#60;br /&#62;
the coordinate of the third quardent   Nx=51 upto 100, and Ny=1 upto 51;&#60;br /&#62;
the coordinate of the forth quardent   Nx=51 upto 100,and Ny=51 upto 100;&#60;br /&#62;
'&#60;br /&#62;
what actually i want to do is that i have an arry of 3-sensors along the x-axis or Y-axis.&#60;br /&#62;
Let the middle sensor to be at the orign. now i want toplace the source at some distance say R,&#60;br /&#62;
R is making some angle theta with middle sensor. How i can proceed...?&#60;/p&#62;
&#60;p&#62;regards.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Cartesian Co-Ordinate and Kgrid Points"</title>
			<link>http://www.k-wave.org/forum/topic/cartesian-co-ordinate-and-kgrid-points-1#post-4871</link>
			<pubDate>Fri, 05 Dec 2014 17:54:27 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4871@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Zia,&#60;/p&#62;
&#60;p&#62;I'm not sure I completely follow what you're asking? k-Wave indexes the grid points from the centre, where the grid index of the centre  point is given by &#60;code&#62;floor(Nx/2)  + 1&#60;/code&#62;, i.e., &#60;/p&#62;
&#60;p&#62;for &#60;code&#62;Nx = 4&#60;/code&#62;:&#60;br /&#62;
&#60;code&#62;-2 -1 0 1&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;for &#60;code&#62;Nx = 5&#60;/code&#62;:&#60;br /&#62;
&#60;code&#62;-2 -1 0 1 2&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;To convert these to cartesian points, these are just multiplied by the grid point spacing (e.g., &#60;code&#62;kgrid.dx&#60;/code&#62;).&#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>zia.roghani on "Cartesian Co-Ordinate and Kgrid Points"</title>
			<link>http://www.k-wave.org/forum/topic/cartesian-co-ordinate-and-kgrid-points-1#post-4869</link>
			<pubDate>Fri, 05 Dec 2014 17:27:57 +0000</pubDate>
			<dc:creator>zia.roghani</dc:creator>
			<guid isPermaLink="false">4869@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,,&#60;br /&#62;
does any body can guide me how to developed a Cartesian coordinate type relation ships between kgrid points.&#60;br /&#62;
let&#60;br /&#62;
Nx = 100;&#60;br /&#62;
Ny = 100;&#60;br /&#62;
dx = 1;&#60;br /&#62;
dy = 1;&#60;br /&#62;
kgrid = makeGrid(Nx, dx, Ny, dy);&#60;br /&#62;
I know that the distance of each kgrid point can be calculated by using the formula&#60;br /&#62;
sqrt(kgrid.x.^2 + kgrid.y.^2);&#60;br /&#62;
how can the (0,0) of the kgrid be points be related to cartesian cordiantes. i wants a general relationship ..&#60;br /&#62;
any help will be higly appreciated.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
