<?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: kWaveArray/plotArray Rectangular Element Type not Recognized [v1.4]</title>
		<link>http://www.k-wave.org/forum/topic/kwavearrayplotarray-rectangular-element-type-not-recognized-v14</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:06:41 +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/kwavearrayplotarray-rectangular-element-type-not-recognized-v14" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "kWaveArray/plotArray Rectangular Element Type not Recognized [v1.4]"</title>
			<link>http://www.k-wave.org/forum/topic/kwavearrayplotarray-rectangular-element-type-not-recognized-v14#post-8675</link>
			<pubDate>Mon, 28 Nov 2022 16:40:11 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">8675@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Thanks for reporting. Badly worded error message I agree! Unfortunately, plotting is only currently supported for disc elements in 3D, and arc elements in 2D.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>scottschoenjr on "kWaveArray/plotArray Rectangular Element Type not Recognized [v1.4]"</title>
			<link>http://www.k-wave.org/forum/topic/kwavearrayplotarray-rectangular-element-type-not-recognized-v14#post-8667</link>
			<pubDate>Wed, 16 Nov 2022 17:52:47 +0000</pubDate>
			<dc:creator>scottschoenjr</dc:creator>
			<guid isPermaLink="false">8667@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;MATLAB R2020b&#60;br /&#62;
Windows 10.0.19044&#60;br /&#62;
k-Wave 1.4&#60;/p&#62;
&#60;p&#62;Following definition of a linear array with kWaveArray.addRectElement, the .plotArray method returns an error that &#34;rect is not a valid array element type.&#34; (otherwise condition at line 1145 of kWaveArray.m).&#60;/p&#62;
&#60;p&#62;This doesn't affect simulation functionality, just visualization.&#60;/p&#62;
&#60;p&#62;------- MWE -------&#60;/p&#62;
&#60;p&#62;clear all;&#60;br /&#62;
close all;&#60;br /&#62;
clc;&#60;/p&#62;
&#60;p&#62;% Set sensor positions&#60;br /&#62;
pitch = 0.2E-3; % [m]&#60;br /&#62;
width = 0.18E-3; % [m]&#60;br /&#62;
height = 0;&#60;br /&#62;
Ne = 128;&#60;br /&#62;
xe = Ne.*pitch.*( linspace( 0, 1, Ne ) - 0.5 );&#60;br /&#62;
ye = 0.*xe;&#60;/p&#62;
&#60;p&#62;% Assign to array&#60;br /&#62;
karray = kWaveArray;&#60;br /&#62;
for eCount = 1 : Ne&#60;br /&#62;
  karray.addRectElement( [xe(eCount), ye(eCount)], width, height, 0 );&#60;br /&#62;
end&#60;/p&#62;
&#60;p&#62;% Plot&#60;br /&#62;
karray.plotArray(true);
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
