<?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: Mac OS X Compatibility?</title>
		<link>http://www.k-wave.org/forum/topic/mac-os-x-compatibility</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 22:00:25 +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/mac-os-x-compatibility" rel="self" type="application/rss+xml" />

		<item>
			<title>quxiaolei on "Mac OS X Compatibility?"</title>
			<link>http://www.k-wave.org/forum/topic/mac-os-x-compatibility#post-6004</link>
			<pubDate>Wed, 21 Jun 2017 09:26:06 +0000</pubDate>
			<dc:creator>quxiaolei</dc:creator>
			<guid isPermaLink="false">6004@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;use k-wave in matlab 2017a just now.&#60;br /&#62;
Thank you for the tips
&#60;/p&#62;</description>
		</item>
		<item>
			<title>DuskWind on "Mac OS X Compatibility?"</title>
			<link>http://www.k-wave.org/forum/topic/mac-os-x-compatibility#post-5926</link>
			<pubDate>Thu, 11 May 2017 10:48:39 +0000</pubDate>
			<dc:creator>DuskWind</dc:creator>
			<guid isPermaLink="false">5926@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Use k-wave in matlab R2016b just now.&#60;br /&#62;
Thanks for the tips of debugging!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Mac OS X Compatibility?"</title>
			<link>http://www.k-wave.org/forum/topic/mac-os-x-compatibility#post-5883</link>
			<pubDate>Wed, 05 Apr 2017 08:48:06 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5883@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Yes, that's the correct file, apologies!&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>samantp on "Mac OS X Compatibility?"</title>
			<link>http://www.k-wave.org/forum/topic/mac-os-x-compatibility#post-5882</link>
			<pubDate>Wed, 05 Apr 2017 01:23:21 +0000</pubDate>
			<dc:creator>samantp</dc:creator>
			<guid isPermaLink="false">5882@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Bradley, thanks for the help! However I noticed that in my private folder there is no subscript called kspaceFirstOrder_checkOptionalInputs. There is one called kspaceFirstOrder_inputChecking.m&#60;br /&#62;
Would the appropriate changes work if I just do it in that subscript instead?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Mac OS X Compatibility?"</title>
			<link>http://www.k-wave.org/forum/topic/mac-os-x-compatibility#post-5850</link>
			<pubDate>Mon, 13 Mar 2017 12:07:59 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5850@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Shane,&#60;/p&#62;
&#60;p&#62;What part are you stuck on? First, open each of the following simulations functions:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;kspaceFirstOrder1D&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;kspaceFirstOrder2D&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;kspaceFirstOrder3D&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;pstdElastic2D&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;pstdElastic3D&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;and add the following lines to the beginning of the function:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;% get the number of inputs and outputs (nargin and nargout can&#38;#39;t be used in
% subscripts in MATLAB 2016b or later)
num_inputs  = nargin;
num_outputs = nargout;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Then open the following subscripts in the private folder&#60;/p&#62;
&#60;p&#62;&#60;code&#62;kspaceFirstOrder_checkOptionalInputs&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;kspaceFirstorder_checkMemoryUsage&#60;/code&#62; &#60;/p&#62;
&#60;p&#62;and replace &#60;code&#62;nargin&#60;/code&#62; with &#60;code&#62;num_inputs&#60;/code&#62;, and &#60;code&#62;nargout&#60;/code&#62; with &#60;code&#62;num_outputs&#60;/code&#62;.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>YING XING on "Mac OS X Compatibility?"</title>
			<link>http://www.k-wave.org/forum/topic/mac-os-x-compatibility#post-5844</link>
			<pubDate>Wed, 01 Mar 2017 15:29:49 +0000</pubDate>
			<dc:creator>YING XING</dc:creator>
			<guid isPermaLink="false">5844@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi everyone,&#60;/p&#62;
&#60;p&#62;Can anyone who solved the nargin/out problem in R2016b provide more information on how to implement &#34; define a new variable at the beginning of each of the simulation functions, something like kwave_nargin = nargin;, and then replace nargin with kwave_nargin in each of the sub-scripts in the private folder&#34; please?&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Shane
&#60;/p&#62;</description>
		</item>
		<item>
			<title>NikiKeyz on "Mac OS X Compatibility?"</title>
			<link>http://www.k-wave.org/forum/topic/mac-os-x-compatibility#post-5835</link>
			<pubDate>Sun, 19 Feb 2017 09:17:29 +0000</pubDate>
			<dc:creator>NikiKeyz</dc:creator>
			<guid isPermaLink="false">5835@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Bradley,&#60;br /&#62;
With these changes example works fine in 2016b. Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Mac OS X Compatibility?"</title>
			<link>http://www.k-wave.org/forum/topic/mac-os-x-compatibility#post-5716</link>
			<pubDate>Mon, 24 Oct 2016 09:40:53 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5716@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Charlie,&#60;/p&#62;
&#60;p&#62;I haven't had time to check this, but I imagine if you define a new variable at the beginning of each of the simulation functions, something like &#60;code&#62;kwave_nargin = nargin;&#60;/code&#62;, and then replace &#60;code&#62;nargin&#60;/code&#62; with &#60;code&#62;kwave_nargin&#60;/code&#62; in each of the sub-scripts in the private folder, then hopefully it should work. &#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crclayton on "Mac OS X Compatibility?"</title>
			<link>http://www.k-wave.org/forum/topic/mac-os-x-compatibility#post-5711</link>
			<pubDate>Wed, 19 Oct 2016 22:59:40 +0000</pubDate>
			<dc:creator>crclayton</dc:creator>
			<guid isPermaLink="false">5711@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Brad,&#60;/p&#62;
&#60;p&#62;I am also having this problem on Windows 10. Is there some sort of ctrl+f and replace that I can do to change the nargin name so this will run this on MATLAB 2016b? Thank you.&#60;/p&#62;
&#60;p&#62;Charlie Clayton
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Mac OS X Compatibility?"</title>
			<link>http://www.k-wave.org/forum/topic/mac-os-x-compatibility#post-5697</link>
			<pubDate>Thu, 06 Oct 2016 22:18:43 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5697@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi ezzatoa,&#60;/p&#62;
&#60;p&#62;Thanks for flagging this. It seems that k-Wave V1.1 and earlier do not work with MATLAB 2016b. Something has changed in the MATLAB error checking, and for some reason the use of &#60;code&#62;nargin&#60;/code&#62; and &#60;code&#62;nargout&#60;/code&#62;in subscripts is no longer allowed. We'll make sure to fix this in the next release. In the meantime, I'd advise using a slightly older version of MATLAB if you have access to one.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ezzatoa on "Mac OS X Compatibility?"</title>
			<link>http://www.k-wave.org/forum/topic/mac-os-x-compatibility#post-5693</link>
			<pubDate>Sat, 01 Oct 2016 16:44:32 +0000</pubDate>
			<dc:creator>ezzatoa</dc:creator>
			<guid isPermaLink="false">5693@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi everyone, &#60;/p&#62;
&#60;p&#62;I've just installed V1.1 with Matlab Version 2016b but received the error shown below when running the example_ivp_homogeneous_medium.m file. Your help will be greatly appreciated. Kind Regards&#60;br /&#62;
Ezzat&#60;/p&#62;
&#60;p&#62;Error using nargout&#60;br /&#62;
You can only call nargin/nargout from within a MATLAB function.&#60;/p&#62;
&#60;p&#62;Error in kspaceFirstOrder_inputChecking (line 35)&#60;br /&#62;
if nargout == 2 &#38;amp;&#38;amp; ~strcmp(calling_func(3).name, 'benchmark')&#60;/p&#62;
&#60;p&#62;Error in kspaceFirstOrder2D (line 496)&#60;br /&#62;
kspaceFirstOrder_inputChecking;&#60;/p&#62;
&#60;p&#62;Error in example_ivp_homogeneous_medium (line 67)&#60;br /&#62;
sensor_data = kspaceFirstOrder2D(kgrid, medium, source, sensor);
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bencox on "Mac OS X Compatibility?"</title>
			<link>http://www.k-wave.org/forum/topic/mac-os-x-compatibility#post-1211</link>
			<pubDate>Mon, 04 Feb 2013 18:39:56 +0000</pubDate>
			<dc:creator>bencox</dc:creator>
			<guid isPermaLink="false">1211@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Heather,&#60;/p&#62;
&#60;p&#62;Glad you got it going.&#60;/p&#62;
&#60;p&#62;I'm not entirely clear what you want to do. You can put in a time-varying acoustic source, but not time-varying medium properties. You can use a spatially-varying sound speed, eg. you can include a depth-dependent sound speed profile, - so should be able to model wavefront bending due to the effect of wind on the sound speed, for example - but you can't set time-varying sound speed profile (so in this example the wind would have to be constant in time). &#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>HTHEGREAT on "Mac OS X Compatibility?"</title>
			<link>http://www.k-wave.org/forum/topic/mac-os-x-compatibility#post-1210</link>
			<pubDate>Mon, 04 Feb 2013 14:46:22 +0000</pubDate>
			<dc:creator>HTHEGREAT</dc:creator>
			<guid isPermaLink="false">1210@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Ah cheers Ben, yeah managed to get it working just after I posted. Just wanted to check, my DSP lecturer recommended your software as I am trying to make a model (ray tracing) of sound propagation outdoors. Obviously I won't have specific dimensions but it is to make a model of the sound source changing over time due to weather conditions. Sorry if that sounds vague! Will your code be capable of helping to simulate this?&#60;/p&#62;
&#60;p&#62;Cheers&#60;/p&#62;
&#60;p&#62;Heather
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bencox on "Mac OS X Compatibility?"</title>
			<link>http://www.k-wave.org/forum/topic/mac-os-x-compatibility#post-1209</link>
			<pubDate>Mon, 04 Feb 2013 14:13:44 +0000</pubDate>
			<dc:creator>bencox</dc:creator>
			<guid isPermaLink="false">1209@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi HTHEGREAT, &#60;/p&#62;
&#60;p&#62;Should work fine on a Mac; I use that all the time. I guess we didn't put separate instructions as we think of OS X as close to Linux. Just download the k-Wave folder and save it somewhere, then set the Matlab path to point to it. That's all! Please post back if you run into any issues.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>HTHEGREAT on "Mac OS X Compatibility?"</title>
			<link>http://www.k-wave.org/forum/topic/mac-os-x-compatibility#post-1208</link>
			<pubDate>Mon, 04 Feb 2013 00:33:23 +0000</pubDate>
			<dc:creator>HTHEGREAT</dc:creator>
			<guid isPermaLink="false">1208@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi there,&#60;/p&#62;
&#60;p&#62;Just wanted to check if k-wave is compatible with Mac OS versions of Matlab and if so how would you install it as there only appears to be instructions for Windows and Linux? I am using Matlab R2012a.&#60;/p&#62;
&#60;p&#62;Cheers!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
