<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Robert Oostenveld</title>
	<atom:link href="http://oostenveld.net/index.php/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://oostenveld.net</link>
	<description>http://oostenveld.net/</description>
	<lastBuildDate>Sat, 04 Feb 2012 17:25:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>Comment on Multithreading in a MATLAB mex file by Robert</title>
		<link>http://oostenveld.net/index.php/multithreading-matlab-mex/comment-page-1/#comment-67657</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Sat, 04 Feb 2012 17:25:51 +0000</pubDate>
		<guid isPermaLink="false">http://oase.uci.ru.nl/~roberto/index.php/multithreading-in-a-matlab-mex-file/#comment-67657</guid>
		<description>I don&#039;t know whether these are threadsafe. I suggest to just give it a try.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know whether these are threadsafe. I suggest to just give it a try.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Multithreading in a MATLAB mex file by Thomas</title>
		<link>http://oostenveld.net/index.php/multithreading-matlab-mex/comment-page-1/#comment-65097</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Mon, 16 Jan 2012 18:35:22 +0000</pubDate>
		<guid isPermaLink="false">http://oase.uci.ru.nl/~roberto/index.php/multithreading-in-a-matlab-mex-file/#comment-65097</guid>
		<description>Dear Robert,

thank you very much for your post. What about using mxXXX functions like mxGetField? Those should be threadsafe, right?

Greetings, Thomas</description>
		<content:encoded><![CDATA[<p>Dear Robert,</p>
<p>thank you very much for your post. What about using mxXXX functions like mxGetField? Those should be threadsafe, right?</p>
<p>Greetings, Thomas</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Multithreading in a MATLAB mex file by Robert</title>
		<link>http://oostenveld.net/index.php/multithreading-matlab-mex/comment-page-1/#comment-60065</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Wed, 07 Dec 2011 07:34:46 +0000</pubDate>
		<guid isPermaLink="false">http://oase.uci.ru.nl/~roberto/index.php/multithreading-in-a-matlab-mex-file/#comment-60065</guid>
		<description>For this you would not need a mex file or multithreading, but a plain function with a persistent variable. Something like this should do:

function output = report_calltime(input)
persistent storage

if isempty(input)
  if isempty(storage) 
  % create a new structure
  storage.parentname = evalin(&#039;caller&#039;, &#039;mfilename&#039;); % get the mfilename of the calling function
  storage.time = clock; % get the current time
  else
  % append to the existing structure 
  storage(end+1).parentname = evalin(&#039;caller&#039;, &#039;mfilename&#039;); % get the mfilename of the calling function
  storage(end).time = clock; % get the current time
  end
  output = storage;
  clear storage
end

You would call &quot;report_calltime&quot; at the beginning of each of your functions. After they are done, you can do &quot;storage = report_calltime(1)&quot; to get the recorded structure.

Note that I did not test the function that I just made up, so it might have some small errors.</description>
		<content:encoded><![CDATA[<p>For this you would not need a mex file or multithreading, but a plain function with a persistent variable. Something like this should do:</p>
<p>function output = report_calltime(input)<br />
persistent storage</p>
<p>if isempty(input)<br />
  if isempty(storage)<br />
  % create a new structure<br />
  storage.parentname = evalin(&#8216;caller&#8217;, &#8216;mfilename&#8217;); % get the mfilename of the calling function<br />
  storage.time = clock; % get the current time<br />
  else<br />
  % append to the existing structure<br />
  storage(end+1).parentname = evalin(&#8216;caller&#8217;, &#8216;mfilename&#8217;); % get the mfilename of the calling function<br />
  storage(end).time = clock; % get the current time<br />
  end<br />
  output = storage;<br />
  clear storage<br />
end</p>
<p>You would call &#8220;report_calltime&#8221; at the beginning of each of your functions. After they are done, you can do &#8220;storage = report_calltime(1)&#8221; to get the recorded structure.</p>
<p>Note that I did not test the function that I just made up, so it might have some small errors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Multithreading in a MATLAB mex file by BELKACEM</title>
		<link>http://oostenveld.net/index.php/multithreading-matlab-mex/comment-page-1/#comment-60050</link>
		<dc:creator>BELKACEM</dc:creator>
		<pubDate>Wed, 07 Dec 2011 05:08:28 +0000</pubDate>
		<guid isPermaLink="false">http://oase.uci.ru.nl/~roberto/index.php/multithreading-in-a-matlab-mex-file/#comment-60050</guid>
		<description>I need know at what time i run my matlab software ( or exactly I need this for each M-file)

J&#039;ai besoin de savoir à quelle heure je lance mon logiciel Matlab (ou exactement j&#039;ai besoin de cela pour chaque M-file)</description>
		<content:encoded><![CDATA[<p>I need know at what time i run my matlab software ( or exactly I need this for each M-file)</p>
<p>J&#8217;ai besoin de savoir à quelle heure je lance mon logiciel Matlab (ou exactement j&#8217;ai besoin de cela pour chaque M-file)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Profiling memory use in Matlab by Robert</title>
		<link>http://oostenveld.net/index.php/profiling-memory-use-in-matlab/comment-page-1/#comment-50216</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Mon, 15 Aug 2011 07:01:35 +0000</pubDate>
		<guid isPermaLink="false">http://oostenveld.net/?p=72#comment-50216</guid>
		<description>%  MEMPROFILE ON starts the profiler and clears previously recorded
%  profile statistics.
% 
%  MEMPROFILE OFF stops the profiler.
% 
%  MEMPROFILE RESUME restarts the profiler without clearing
%  previously recorded memory statistics.
% 
%  MEMPROFILE CLEAR clears all recorded profile statistics.
% 
%  STATS = MEMPROFILE(&#039;INFO&#039;) returns a structure containing the 
% current profiler statistics.</description>
		<content:encoded><![CDATA[<p>%  MEMPROFILE ON starts the profiler and clears previously recorded<br />
%  profile statistics.<br />
%<br />
%  MEMPROFILE OFF stops the profiler.<br />
%<br />
%  MEMPROFILE RESUME restarts the profiler without clearing<br />
%  previously recorded memory statistics.<br />
%<br />
%  MEMPROFILE CLEAR clears all recorded profile statistics.<br />
%<br />
%  STATS = MEMPROFILE(&#8216;INFO&#8217;) returns a structure containing the<br />
% current profiler statistics.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Profiling memory use in Matlab by roy</title>
		<link>http://oostenveld.net/index.php/profiling-memory-use-in-matlab/comment-page-1/#comment-49511</link>
		<dc:creator>roy</dc:creator>
		<pubDate>Thu, 04 Aug 2011 12:16:55 +0000</pubDate>
		<guid isPermaLink="false">http://oostenveld.net/?p=72#comment-49511</guid>
		<description>how do i switch it off?</description>
		<content:encoded><![CDATA[<p>how do i switch it off?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Neuroscan by Robert</title>
		<link>http://oostenveld.net/index.php/neuroscan/comment-page-1/#comment-42603</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Thu, 12 May 2011 08:17:28 +0000</pubDate>
		<guid isPermaLink="false">http://oase.uci.kun.nl/~roberto/wordpress/?p=4#comment-42603</guid>
		<description>Please have a look at the FieldTrip documentation on http://fieldtrip.fcdonders.nl/faq/how_can_i_convert_one_dataformat_into_an_other</description>
		<content:encoded><![CDATA[<p>Please have a look at the FieldTrip documentation on <a href="http://fieldtrip.fcdonders.nl/faq/how_can_i_convert_one_dataformat_into_an_other" rel="nofollow">http://fieldtrip.fcdonders.nl/faq/how_can_i_convert_one_dataformat_into_an_other</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Neuroscan by Corrine</title>
		<link>http://oostenveld.net/index.php/neuroscan/comment-page-1/#comment-42572</link>
		<dc:creator>Corrine</dc:creator>
		<pubDate>Wed, 11 May 2011 16:59:26 +0000</pubDate>
		<guid isPermaLink="false">http://oase.uci.kun.nl/~roberto/wordpress/?p=4#comment-42572</guid>
		<description>Hi 
I am trying to figure out a way to convert and EEG collection from neuroscan into an edf file.  I&#039;m not sure if there is a way to do this. Any information would be greatly appreciated!</description>
		<content:encoded><![CDATA[<p>Hi<br />
I am trying to figure out a way to convert and EEG collection from neuroscan into an edf file.  I&#8217;m not sure if there is a way to do this. Any information would be greatly appreciated!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Peer-to-peer distributed Matlab computing &#8211; update by Robert</title>
		<link>http://oostenveld.net/index.php/96/comment-page-1/#comment-31921</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Sun, 18 Jul 2010 11:09:29 +0000</pubDate>
		<guid isPermaLink="false">http://oostenveld.net/?p=96#comment-31921</guid>
		<description>the page you are looking for is currently located at http://robertoostenveld.ruhosting.nl/index.php/electrode
</description>
		<content:encoded><![CDATA[<p>the page you are looking for is currently located at <a href="http://robertoostenveld.ruhosting.nl/index.php/electrode" rel="nofollow">http://robertoostenveld.ruhosting.nl/index.php/electrode</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Peer-to-peer distributed Matlab computing &#8211; update by Pedro</title>
		<link>http://oostenveld.net/index.php/96/comment-page-1/#comment-31903</link>
		<dc:creator>Pedro</dc:creator>
		<pubDate>Sun, 18 Jul 2010 00:21:39 +0000</pubDate>
		<guid isPermaLink="false">http://oostenveld.net/?p=96#comment-31903</guid>
		<description>Hi Mr. Oostenveld, I came to this page looling for meaningfull electrode locations from the site:
http://oase.uci.ru.nl/~roberto/index.php/electrode/
I dont know how to get these, so please, If you know how to get this data, please let me know.</description>
		<content:encoded><![CDATA[<p>Hi Mr. Oostenveld, I came to this page looling for meaningfull electrode locations from the site:<br />
<a href="http://oase.uci.ru.nl/~roberto/index.php/electrode/" rel="nofollow">http://oase.uci.ru.nl/~roberto/index.php/electrode/</a><br />
I dont know how to get these, so please, If you know how to get this data, please let me know.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

