<?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: attenComp.m error?</title>
		<link>http://www.k-wave.org/forum/topic/attencompm-error</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 01:49:31 +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/attencompm-error" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "attenComp.m error?"</title>
			<link>http://www.k-wave.org/forum/topic/attencompm-error#post-8248</link>
			<pubDate>Wed, 21 Jul 2021 14:17:10 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">8248@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Damien,&#60;/p&#62;
&#60;p&#62;Yes, this is a bug - thanks very much for reporting. I'll include the fix with next release. Fortunately, at least for the few examples I've tried, it doesn't have a huge impact as the values in the non-stationary convolution matrix are pretty small away from the diagonal anyway.&#60;/p&#62;
&#60;p&#62;Brad
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Damien GASTEAU on "attenComp.m error?"</title>
			<link>http://www.k-wave.org/forum/topic/attencompm-error#post-8141</link>
			<pubDate>Tue, 27 Apr 2021 10:12:03 +0000</pubDate>
			<dc:creator>Damien GASTEAU</dc:creator>
			<guid isPermaLink="false">8141@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I am currently working with the attenComp.m function and noticed on line 510 that the lower triangle coefficients are set to zeros twice.&#60;/p&#62;
&#60;p&#62;% zero out lower and upper triangles&#60;br /&#62;
ones_mat = ones(N, N);&#60;br /&#62;
tv_filter(tril(ones_mat, -ceil(N/2) + 1) == 1) = 0;&#60;br /&#62;
tv_filter(tril(ones_mat, -ceil(N/2) + 1) == 1) = 0;&#60;/p&#62;
&#60;p&#62;Shouldn't it be something like:&#60;/p&#62;
&#60;p&#62;% zero out lower and upper triangles&#60;br /&#62;
ones_mat = ones(N, N);&#60;br /&#62;
tv_filter(tril(ones_mat, -ceil(N/2) + 1) == 1) = 0;&#60;br /&#62;
tv_filter(triu(ones_mat, ceil(N/2) + 1) == 1) = 0;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
