<?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: Organizing code in packages</title>
		<link>http://www.k-wave.org/forum/topic/organizing-code-in-packages</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:36:45 +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/organizing-code-in-packages" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Organizing code in packages"</title>
			<link>http://www.k-wave.org/forum/topic/organizing-code-in-packages#post-4370</link>
			<pubDate>Fri, 14 Mar 2014 15:40:24 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4370@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi DNF,&#60;/p&#62;
&#60;p&#62;It is a sensible suggestion, and would avoid the namespace issues. On the downside it would require us renaming all the function calls within the toolbox to include the package name (or adding an import call to the top of every function), and would break backwards compatibility with existing user scripts. I'll give it some thought going forwards.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>DNF on "Organizing code in packages"</title>
			<link>http://www.k-wave.org/forum/topic/organizing-code-in-packages#post-4369</link>
			<pubDate>Fri, 14 Mar 2014 14:42:22 +0000</pubDate>
			<dc:creator>DNF</dc:creator>
			<guid isPermaLink="false">4369@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi.&#60;/p&#62;
&#60;p&#62;Great toolbox! But, have you considered putting k-Wave in a Matlab package, that is, organizing it in a '+'-folder? One small annoyance while using k-Wave, and frankly most Matlab code, is namespace clashes.&#60;/p&#62;
&#60;p&#62;I have a number of functions called 'smooth.m' or 'gaussian.m' and so on, and need to care that one does not shadow another at various times. It would be very convenient if i could write&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;gt;&#38;gt; mat_sm = kwave.smooth(kgrid, mat);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;or &#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;gt;&#38;gt; import kwave.*&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;&#38;gt;&#38;gt; mat_sm = smooth(kgrid, mat);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I believe that using packages is something that Mathworks is trying to encourage, as well.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
