<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.ccn.ucla.edu/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ravi</id>
	<title>Center for Cognitive Neuroscience - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.ccn.ucla.edu/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ravi"/>
	<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php/Special:Contributions/Ravi"/>
	<updated>2026-05-08T07:42:01Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Instructions&amp;diff=4758</id>
		<title>Instructions</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Instructions&amp;diff=4758"/>
		<updated>2022-02-15T06:45:53Z</updated>

		<summary type="html">&lt;p&gt;Ravi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Instructions for Creating New User and Adding User Rights&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;1) Login as a Administrator&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;2) Navigate to the &amp;quot;Special Pages&amp;quot; link on the left side toolbar&#039;&#039;&#039;&lt;br /&gt;
** https://www.ccn.ucla.edu/wiki/index.php/Special:SpecialPages &lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;3) Click on &amp;quot;Create Account&amp;quot; under Login/ create account &#039;&#039;&#039;&lt;br /&gt;
** https://www.ccn.ucla.edu/wiki/index.php/Special:CreateAccount&lt;br /&gt;
*** chose a temporary password for the user for use during first login&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;4) Navigate back to &amp;quot;Special Pages&amp;quot; and click on &amp;quot;User Rights Management&amp;quot; &lt;br /&gt;
** Input the username of the user you created and assign the user to the right user groups&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Instructions&amp;diff=4757</id>
		<title>Instructions</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Instructions&amp;diff=4757"/>
		<updated>2022-02-15T06:31:01Z</updated>

		<summary type="html">&lt;p&gt;Ravi: Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Instructions for Creating New User and Adding User Rights&amp;#039;&amp;#039;&amp;#039; 1) First Login as a Administrator&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Instructions for Creating New User and Adding User Rights&#039;&#039;&#039;&lt;br /&gt;
1) First Login as a Administrator&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Main_Page&amp;diff=4756</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Main_Page&amp;diff=4756"/>
		<updated>2022-02-15T06:27:35Z</updated>

		<summary type="html">&lt;p&gt;Ravi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
== Center for Cognitive Neuroscience at UCLA ==&lt;br /&gt;
&lt;br /&gt;
Welcome to the Wiki of the Center for Cognitive Neuroscience at UCLA (CCN at UCLA).  Please find and contribute helpful information for lab usage here.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Classes ===&lt;br /&gt;
* [[CCN Workshops]]&lt;br /&gt;
* [[Neuroimaging+ Journal Club]]&lt;br /&gt;
* [[Principles of Neuroimaging - 2016-2017]]&lt;br /&gt;
* [[Principles of Neuroimaging - 2015-2016]]&lt;br /&gt;
&lt;br /&gt;
=== Computing ===&lt;br /&gt;
* [[Hoffman2 maintenance and Issues]]&lt;br /&gt;
* [[Hoffman2]]&lt;br /&gt;
* [[Dicom]]&lt;br /&gt;
* [[Psychophysics]]&lt;br /&gt;
&amp;lt;!-- * [[FUNC]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== EEG/fMRI ===&lt;br /&gt;
* [[EEG]] (includes EEG-fMRI)&lt;br /&gt;
* [[MR]]&lt;br /&gt;
&amp;lt;!-- * [[fNIRS]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Staglin Center ===&lt;br /&gt;
* [[Staglin EEG Suite]]&lt;br /&gt;
* [[Staglin MR Suite]]&lt;br /&gt;
&lt;br /&gt;
=== Resources ===&lt;br /&gt;
* [[Software Licenses]]&lt;br /&gt;
&amp;lt;!-- * [[Resources at UCLA]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Instructions For Admins ===&lt;br /&gt;
* [[Instructions]]&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4336</id>
		<title>Hoffman2:MATLAB</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4336"/>
		<updated>2020-04-02T18:47:39Z</updated>

		<summary type="html">&lt;p&gt;Ravi: /* Running Parallel Jobs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Hoffman2|Back to all things Hoffman2]]&lt;br /&gt;
&lt;br /&gt;
MATLAB is not a small program and it can handle some fairly complex graphics.  As such, this is not something suitable to be used on a login node of Hoffman2.  But that&#039;s already been thought of by the great people at ATS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GUI==&lt;br /&gt;
To run a full GUI session of MATLAB, execute&lt;br /&gt;
 $ matlab&lt;br /&gt;
That&#039;s it, no flags, no frills, nothing else.  Hoffman2 will automatically check out an appropriate interactive node for you to run MATLAB on.  All you have to do is provide a time limit (in hours) when they ask you&lt;br /&gt;
 Enter a time limit for your session, in hours (default 2)&lt;br /&gt;
 &amp;lt;or quit&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line==&lt;br /&gt;
If you don&#039;t need the fancy GUI and just want the command line, execute&lt;br /&gt;
 $ matlab -nodesktop&lt;br /&gt;
and then supply a time limit when asked.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Since this uses interactive nodes, the maximum time limit you can request is 24 hours.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==License Check==&lt;br /&gt;
With so many people using Hoffman2 and MATLAB, sometimes licenses run out.  Using this helpful script will give you some insight as to the license situation.&lt;br /&gt;
&lt;br /&gt;
[[Hoffman2:Scripts:matlab_license_check.sh|matlab_license_check.sh]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Large Computations==&lt;br /&gt;
If you are doing a larger computation, &#039;&#039;&#039;running MATLAB normally will probably not work well.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the default method of launching MATLAB on Hoffman2 checks out an [[Hoffman2:Interactive_Sessions | interactive node]] with only 1GB of RAM.  This is woefully small if you are working with ten minutes of dense array EEG.  Use the following steps to launch a more capable MATLAB session.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ # Request an interactive node with time and memory required. In this case, 10 hours and 4GB RAM&lt;br /&gt;
 $ qrsh -l i,h_rt=10:00:00,h_data=4G&lt;br /&gt;
 $ # Load the module MATLAB&lt;br /&gt;
 $ # You can also load different versions of MATLAB:&lt;br /&gt;
 $ #   module load matlab/7.14&lt;br /&gt;
 $ #  or&lt;br /&gt;
 $ #   module load matlab/8.1&lt;br /&gt;
 $ # Try using &amp;quot;module help&amp;quot; for more information&lt;br /&gt;
 $ module load matlab&lt;br /&gt;
 $ # Launch MATLAB&lt;br /&gt;
 $ matlab&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Running Parallel Jobs==&lt;br /&gt;
IDRE team provided the following solution to use parallel pool in Matlab version 9.7.&lt;br /&gt;
Please create the [[Hoffman2:parpoolexample.m | parpoolexample.m]] first, where you initiate a pool with the amount of workers needed to run the job. &lt;br /&gt;
* Make sure to not run the papoolexample.m in MATLAB&lt;br /&gt;
&lt;br /&gt;
 1)  Request an interactive session with for example: &lt;br /&gt;
 #*  $qrsh -l h_data=4G -pe shared 1&lt;br /&gt;
 &lt;br /&gt;
 2)  When the interactive session is awarded issue:&lt;br /&gt;
 #*  $module load matlab/9.7&lt;br /&gt;
 #*  $matlab &amp;amp;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 3) When the matlab desktop opens, issue at the matlab command prompt:&lt;br /&gt;
  &amp;gt;&amp;gt; rehash toolboxcache&lt;br /&gt;
  &amp;gt;&amp;gt; configCluster&lt;br /&gt;
 &lt;br /&gt;
 4) Close matlab&lt;br /&gt;
 &lt;br /&gt;
 5) To familiarize with the submission procedure you could copy the content of the directory:&lt;br /&gt;
 #*  /u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION&lt;br /&gt;
 &lt;br /&gt;
 7) In a local test directory and issue:&lt;br /&gt;
 #*  ./matlab_batch_parallel_job_submit.sh -t 3 -s 20 -m 4 -v 9.7 -f [[Hoffman2:parpoolexample.m | parpoolexample.m]]&lt;br /&gt;
 &lt;br /&gt;
 8) Look into the file:&lt;br /&gt;
 #*  /u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION/README.HOWTO&lt;br /&gt;
 &lt;br /&gt;
 9) and/or issues:&lt;br /&gt;
 #* ./matlab_batch_parallel_job_submit.sh --help&lt;br /&gt;
&lt;br /&gt;
==Software Versions==&lt;br /&gt;
&lt;br /&gt;
The current default version of MATLAB on Hoffman2 is R2015b, but more recent versions are also available for use:&lt;br /&gt;
&lt;br /&gt;
 R2016b  or  matlab/9.1&lt;br /&gt;
 R2019b  or  matlab/9.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[https://www.hoffman2.idre.ucla.edu/matlab_toolboxes/ MATLAB on Hoffman2]&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4335</id>
		<title>Hoffman2:MATLAB</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4335"/>
		<updated>2020-04-02T18:46:45Z</updated>

		<summary type="html">&lt;p&gt;Ravi: /* Running Parallel Jobs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Hoffman2|Back to all things Hoffman2]]&lt;br /&gt;
&lt;br /&gt;
MATLAB is not a small program and it can handle some fairly complex graphics.  As such, this is not something suitable to be used on a login node of Hoffman2.  But that&#039;s already been thought of by the great people at ATS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GUI==&lt;br /&gt;
To run a full GUI session of MATLAB, execute&lt;br /&gt;
 $ matlab&lt;br /&gt;
That&#039;s it, no flags, no frills, nothing else.  Hoffman2 will automatically check out an appropriate interactive node for you to run MATLAB on.  All you have to do is provide a time limit (in hours) when they ask you&lt;br /&gt;
 Enter a time limit for your session, in hours (default 2)&lt;br /&gt;
 &amp;lt;or quit&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line==&lt;br /&gt;
If you don&#039;t need the fancy GUI and just want the command line, execute&lt;br /&gt;
 $ matlab -nodesktop&lt;br /&gt;
and then supply a time limit when asked.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Since this uses interactive nodes, the maximum time limit you can request is 24 hours.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==License Check==&lt;br /&gt;
With so many people using Hoffman2 and MATLAB, sometimes licenses run out.  Using this helpful script will give you some insight as to the license situation.&lt;br /&gt;
&lt;br /&gt;
[[Hoffman2:Scripts:matlab_license_check.sh|matlab_license_check.sh]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Large Computations==&lt;br /&gt;
If you are doing a larger computation, &#039;&#039;&#039;running MATLAB normally will probably not work well.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the default method of launching MATLAB on Hoffman2 checks out an [[Hoffman2:Interactive_Sessions | interactive node]] with only 1GB of RAM.  This is woefully small if you are working with ten minutes of dense array EEG.  Use the following steps to launch a more capable MATLAB session.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ # Request an interactive node with time and memory required. In this case, 10 hours and 4GB RAM&lt;br /&gt;
 $ qrsh -l i,h_rt=10:00:00,h_data=4G&lt;br /&gt;
 $ # Load the module MATLAB&lt;br /&gt;
 $ # You can also load different versions of MATLAB:&lt;br /&gt;
 $ #   module load matlab/7.14&lt;br /&gt;
 $ #  or&lt;br /&gt;
 $ #   module load matlab/8.1&lt;br /&gt;
 $ # Try using &amp;quot;module help&amp;quot; for more information&lt;br /&gt;
 $ module load matlab&lt;br /&gt;
 $ # Launch MATLAB&lt;br /&gt;
 $ matlab&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Running Parallel Jobs==&lt;br /&gt;
IDRE team provided the following solution to use parallel pool in Matlab version 9.7.&lt;br /&gt;
Please create the [[Hoffman2:parpoolexample.m | parpooltest.m]] first, where you initiate a pool with the amount of workers needed to run the job. &lt;br /&gt;
* Make sure to not run the papooltest.m in MATLAB&lt;br /&gt;
&lt;br /&gt;
 1)  Request an interactive session with for example: &lt;br /&gt;
 #*  $qrsh -l h_data=4G -pe shared 1&lt;br /&gt;
 &lt;br /&gt;
 2)  When the interactive session is awarded issue:&lt;br /&gt;
 #*  $module load matlab/9.7&lt;br /&gt;
 #*  $matlab &amp;amp;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 3) When the matlab desktop opens, issue at the matlab command prompt:&lt;br /&gt;
  &amp;gt;&amp;gt; rehash toolboxcache&lt;br /&gt;
  &amp;gt;&amp;gt; configCluster&lt;br /&gt;
 &lt;br /&gt;
 4) Close matlab&lt;br /&gt;
 &lt;br /&gt;
 5) To familiarize with the submission procedure you could copy the content of the directory:&lt;br /&gt;
 #*  /u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION&lt;br /&gt;
 &lt;br /&gt;
 7) In a local test directory and issue:&lt;br /&gt;
 #*  ./matlab_batch_parallel_job_submit.sh -t 3 -s 20 -m 4 -v 9.7 -f [[Hoffman2:parpoolexample.m | myparpooltest.m]]&lt;br /&gt;
 &lt;br /&gt;
 8) Look into the file:&lt;br /&gt;
 #*  /u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION/README.HOWTO&lt;br /&gt;
 &lt;br /&gt;
 9) and/or issues:&lt;br /&gt;
 #* ./matlab_batch_parallel_job_submit.sh --help&lt;br /&gt;
&lt;br /&gt;
==Software Versions==&lt;br /&gt;
&lt;br /&gt;
The current default version of MATLAB on Hoffman2 is R2015b, but more recent versions are also available for use:&lt;br /&gt;
&lt;br /&gt;
 R2016b  or  matlab/9.1&lt;br /&gt;
 R2019b  or  matlab/9.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[https://www.hoffman2.idre.ucla.edu/matlab_toolboxes/ MATLAB on Hoffman2]&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4334</id>
		<title>Hoffman2:MATLAB</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4334"/>
		<updated>2020-04-02T18:45:44Z</updated>

		<summary type="html">&lt;p&gt;Ravi: /* Running Parallel Jobs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Hoffman2|Back to all things Hoffman2]]&lt;br /&gt;
&lt;br /&gt;
MATLAB is not a small program and it can handle some fairly complex graphics.  As such, this is not something suitable to be used on a login node of Hoffman2.  But that&#039;s already been thought of by the great people at ATS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GUI==&lt;br /&gt;
To run a full GUI session of MATLAB, execute&lt;br /&gt;
 $ matlab&lt;br /&gt;
That&#039;s it, no flags, no frills, nothing else.  Hoffman2 will automatically check out an appropriate interactive node for you to run MATLAB on.  All you have to do is provide a time limit (in hours) when they ask you&lt;br /&gt;
 Enter a time limit for your session, in hours (default 2)&lt;br /&gt;
 &amp;lt;or quit&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line==&lt;br /&gt;
If you don&#039;t need the fancy GUI and just want the command line, execute&lt;br /&gt;
 $ matlab -nodesktop&lt;br /&gt;
and then supply a time limit when asked.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Since this uses interactive nodes, the maximum time limit you can request is 24 hours.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==License Check==&lt;br /&gt;
With so many people using Hoffman2 and MATLAB, sometimes licenses run out.  Using this helpful script will give you some insight as to the license situation.&lt;br /&gt;
&lt;br /&gt;
[[Hoffman2:Scripts:matlab_license_check.sh|matlab_license_check.sh]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Large Computations==&lt;br /&gt;
If you are doing a larger computation, &#039;&#039;&#039;running MATLAB normally will probably not work well.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the default method of launching MATLAB on Hoffman2 checks out an [[Hoffman2:Interactive_Sessions | interactive node]] with only 1GB of RAM.  This is woefully small if you are working with ten minutes of dense array EEG.  Use the following steps to launch a more capable MATLAB session.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ # Request an interactive node with time and memory required. In this case, 10 hours and 4GB RAM&lt;br /&gt;
 $ qrsh -l i,h_rt=10:00:00,h_data=4G&lt;br /&gt;
 $ # Load the module MATLAB&lt;br /&gt;
 $ # You can also load different versions of MATLAB:&lt;br /&gt;
 $ #   module load matlab/7.14&lt;br /&gt;
 $ #  or&lt;br /&gt;
 $ #   module load matlab/8.1&lt;br /&gt;
 $ # Try using &amp;quot;module help&amp;quot; for more information&lt;br /&gt;
 $ module load matlab&lt;br /&gt;
 $ # Launch MATLAB&lt;br /&gt;
 $ matlab&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Running Parallel Jobs==&lt;br /&gt;
IDRE team provided the following solution to use parallel pool in Matlab version 9.7&lt;br /&gt;
Please create the [[Hoffman2:parpoolexample.m | parpooltest.m]] where you initiate a pool with the amount of workers needed to run the job. &lt;br /&gt;
* Make sure to not run the papooltest.m in MATLAB&lt;br /&gt;
&lt;br /&gt;
 1)  Request an interactive session with for example: &lt;br /&gt;
 #*  $qrsh -l h_data=4G -pe shared 1&lt;br /&gt;
 &lt;br /&gt;
 2)  When the interactive session is awarded issue:&lt;br /&gt;
 #*  $module load matlab/9.7&lt;br /&gt;
 #*  $matlab &amp;amp;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 3) When the matlab desktop opens, issue at the matlab command prompt:&lt;br /&gt;
  &amp;gt;&amp;gt; rehash toolboxcache&lt;br /&gt;
  &amp;gt;&amp;gt; configCluster&lt;br /&gt;
 &lt;br /&gt;
 4) Close matlab&lt;br /&gt;
 &lt;br /&gt;
 5) To familiarize with the submission procedure you could copy the content of the directory:&lt;br /&gt;
 #*  /u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION&lt;br /&gt;
 &lt;br /&gt;
 7) In a local test directory and issue:&lt;br /&gt;
 #*  ./matlab_batch_parallel_job_submit.sh -t 3 -s 20 -m 4 -v 9.7 -f [[Hoffman2:parpoolexample.m | myparpooltest.m]]&lt;br /&gt;
 &lt;br /&gt;
 8) Look into the file:&lt;br /&gt;
 #*  /u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION/README.HOWTO&lt;br /&gt;
 &lt;br /&gt;
 9) and/or issues:&lt;br /&gt;
 #* ./matlab_batch_parallel_job_submit.sh --help&lt;br /&gt;
&lt;br /&gt;
==Software Versions==&lt;br /&gt;
&lt;br /&gt;
The current default version of MATLAB on Hoffman2 is R2015b, but more recent versions are also available for use:&lt;br /&gt;
&lt;br /&gt;
 R2016b  or  matlab/9.1&lt;br /&gt;
 R2019b  or  matlab/9.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[https://www.hoffman2.idre.ucla.edu/matlab_toolboxes/ MATLAB on Hoffman2]&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:parpoolexample.m&amp;diff=4333</id>
		<title>Hoffman2:parpoolexample.m</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:parpoolexample.m&amp;diff=4333"/>
		<updated>2020-04-02T18:43:03Z</updated>

		<summary type="html">&lt;p&gt;Ravi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Example Script of using 20 workers: &lt;br /&gt;
 %%%% parpoolexample.m START %%%%%&lt;br /&gt;
 &lt;br /&gt;
 n=20&lt;br /&gt;
 p = parpool(&#039;local&#039;,n);&lt;br /&gt;
 poolobj = gcp(&#039;nocreate&#039;); % If no pool, do not create new one.&lt;br /&gt;
 if isempty(poolobj)&lt;br /&gt;
     poolsize = 0;&lt;br /&gt;
 else&lt;br /&gt;
     poolsize = poolobj.NumWorkers&lt;br /&gt;
 end&lt;br /&gt;
 tic&lt;br /&gt;
 ticBytes(gcp);&lt;br /&gt;
 n = 1024;&lt;br /&gt;
 A = zeros(n);&lt;br /&gt;
 parfor (i = 1:n)&lt;br /&gt;
     A(i,:) = (1:n) .* sin(i*2*pi/1024);&lt;br /&gt;
 end&lt;br /&gt;
 tocBytes(gcp)&lt;br /&gt;
 toc&lt;br /&gt;
 delete(p)&lt;br /&gt;
 %%%% parpoolexample.m STOP %%%%%&lt;br /&gt;
&lt;br /&gt;
If the script is run without the steps mentioned in [[Hoffman2:MATLAB#Running_Parallel_Jobs | Running_Parallel_Jobs]], you will run in to an issue where the local pool will start but wouldn&#039;t initialize the workers themselves. &lt;br /&gt;
&lt;br /&gt;
**Create this parpoolexample.m before going through the steps mentioned **&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:parpoolexample.m&amp;diff=4332</id>
		<title>Hoffman2:parpoolexample.m</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:parpoolexample.m&amp;diff=4332"/>
		<updated>2020-04-02T18:38:59Z</updated>

		<summary type="html">&lt;p&gt;Ravi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Example Script: &lt;br /&gt;
 %%%% parpoolexample.m START %%%%%&lt;br /&gt;
 &lt;br /&gt;
 n=20&lt;br /&gt;
 p = parpool(&#039;local&#039;,n);&lt;br /&gt;
 poolobj = gcp(&#039;nocreate&#039;); % If no pool, do not create new one.&lt;br /&gt;
 if isempty(poolobj)&lt;br /&gt;
     poolsize = 0;&lt;br /&gt;
 else&lt;br /&gt;
     poolsize = poolobj.NumWorkers&lt;br /&gt;
 end&lt;br /&gt;
 tic&lt;br /&gt;
 ticBytes(gcp);&lt;br /&gt;
 n = 1024;&lt;br /&gt;
 A = zeros(n);&lt;br /&gt;
 parfor (i = 1:n)&lt;br /&gt;
     A(i,:) = (1:n) .* sin(i*2*pi/1024);&lt;br /&gt;
 end&lt;br /&gt;
 tocBytes(gcp)&lt;br /&gt;
 toc&lt;br /&gt;
 delete(p)&lt;br /&gt;
 %%%% parpoolexample.m STOP %%%%%&lt;br /&gt;
&lt;br /&gt;
If the script is run without the steps mentioned [[Hoffman2:MATLAB#RunningParallel_Jobs | here]]&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:parpoolexample.m&amp;diff=4331</id>
		<title>Hoffman2:parpoolexample.m</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:parpoolexample.m&amp;diff=4331"/>
		<updated>2020-04-02T18:37:23Z</updated>

		<summary type="html">&lt;p&gt;Ravi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Example Script: &lt;br /&gt;
 %%%% parpoolexample.m START %%%%%&lt;br /&gt;
 &lt;br /&gt;
 n=20&lt;br /&gt;
 p = parpool(&#039;local&#039;,n);&lt;br /&gt;
 poolobj = gcp(&#039;nocreate&#039;); % If no pool, do not create new one.&lt;br /&gt;
 if isempty(poolobj)&lt;br /&gt;
     poolsize = 0;&lt;br /&gt;
 else&lt;br /&gt;
     poolsize = poolobj.NumWorkers&lt;br /&gt;
 end&lt;br /&gt;
 tic&lt;br /&gt;
 ticBytes(gcp);&lt;br /&gt;
 n = 1024;&lt;br /&gt;
 A = zeros(n);&lt;br /&gt;
 parfor (i = 1:n)&lt;br /&gt;
     A(i,:) = (1:n) .* sin(i*2*pi/1024);&lt;br /&gt;
 end&lt;br /&gt;
 tocBytes(gcp)&lt;br /&gt;
 toc&lt;br /&gt;
 delete(p)&lt;br /&gt;
&lt;br /&gt;
 %%%% parpoolexample.m STOP %%%%%&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:parpoolexample.m&amp;diff=4330</id>
		<title>Hoffman2:parpoolexample.m</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:parpoolexample.m&amp;diff=4330"/>
		<updated>2020-04-02T18:37:14Z</updated>

		<summary type="html">&lt;p&gt;Ravi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Example Script: &lt;br /&gt;
 %%%% parpoolexample.m START %%%%%&lt;br /&gt;
 &lt;br /&gt;
 n=20&lt;br /&gt;
 p = parpool(&#039;local&#039;,n);&lt;br /&gt;
 poolobj = gcp(&#039;nocreate&#039;); % If no pool, do not create new one.&lt;br /&gt;
 if isempty(poolobj)&lt;br /&gt;
     poolsize = 0;&lt;br /&gt;
 else&lt;br /&gt;
     poolsize = poolobj.NumWorkers&lt;br /&gt;
 end&lt;br /&gt;
 tic&lt;br /&gt;
 ticBytes(gcp);&lt;br /&gt;
 n = 1024;&lt;br /&gt;
 A = zeros(n);&lt;br /&gt;
 parfor (i = 1:n)&lt;br /&gt;
     A(i,:) = (1:n) .* sin(i*2*pi/1024);&lt;br /&gt;
 end&lt;br /&gt;
 tocBytes(gcp)&lt;br /&gt;
 toc&lt;br /&gt;
 delete(p)&lt;br /&gt;
 %%%% parpoolexample.m STOP %%%%%&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4329</id>
		<title>Hoffman2:MATLAB</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4329"/>
		<updated>2020-04-02T18:31:45Z</updated>

		<summary type="html">&lt;p&gt;Ravi: /* Running Parallel Jobs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Hoffman2|Back to all things Hoffman2]]&lt;br /&gt;
&lt;br /&gt;
MATLAB is not a small program and it can handle some fairly complex graphics.  As such, this is not something suitable to be used on a login node of Hoffman2.  But that&#039;s already been thought of by the great people at ATS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GUI==&lt;br /&gt;
To run a full GUI session of MATLAB, execute&lt;br /&gt;
 $ matlab&lt;br /&gt;
That&#039;s it, no flags, no frills, nothing else.  Hoffman2 will automatically check out an appropriate interactive node for you to run MATLAB on.  All you have to do is provide a time limit (in hours) when they ask you&lt;br /&gt;
 Enter a time limit for your session, in hours (default 2)&lt;br /&gt;
 &amp;lt;or quit&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line==&lt;br /&gt;
If you don&#039;t need the fancy GUI and just want the command line, execute&lt;br /&gt;
 $ matlab -nodesktop&lt;br /&gt;
and then supply a time limit when asked.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Since this uses interactive nodes, the maximum time limit you can request is 24 hours.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==License Check==&lt;br /&gt;
With so many people using Hoffman2 and MATLAB, sometimes licenses run out.  Using this helpful script will give you some insight as to the license situation.&lt;br /&gt;
&lt;br /&gt;
[[Hoffman2:Scripts:matlab_license_check.sh|matlab_license_check.sh]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Large Computations==&lt;br /&gt;
If you are doing a larger computation, &#039;&#039;&#039;running MATLAB normally will probably not work well.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the default method of launching MATLAB on Hoffman2 checks out an [[Hoffman2:Interactive_Sessions | interactive node]] with only 1GB of RAM.  This is woefully small if you are working with ten minutes of dense array EEG.  Use the following steps to launch a more capable MATLAB session.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ # Request an interactive node with time and memory required. In this case, 10 hours and 4GB RAM&lt;br /&gt;
 $ qrsh -l i,h_rt=10:00:00,h_data=4G&lt;br /&gt;
 $ # Load the module MATLAB&lt;br /&gt;
 $ # You can also load different versions of MATLAB:&lt;br /&gt;
 $ #   module load matlab/7.14&lt;br /&gt;
 $ #  or&lt;br /&gt;
 $ #   module load matlab/8.1&lt;br /&gt;
 $ # Try using &amp;quot;module help&amp;quot; for more information&lt;br /&gt;
 $ module load matlab&lt;br /&gt;
 $ # Launch MATLAB&lt;br /&gt;
 $ matlab&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Running Parallel Jobs==&lt;br /&gt;
IDRE team provided the following solution to use parallel pool in Matlab version 9.7&lt;br /&gt;
&lt;br /&gt;
 1)  Request an interactive session with for example: &lt;br /&gt;
 #*  $qrsh -l h_data=4G -pe shared 1&lt;br /&gt;
 &lt;br /&gt;
 2)  When the interactive session is awarded issue:&lt;br /&gt;
 #*  $module load matlab/9.7&lt;br /&gt;
 #*  $matlab &amp;amp;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 3) When the matlab desktop opens, issue at the matlab command prompt:&lt;br /&gt;
  &amp;gt;&amp;gt; rehash toolboxcache&lt;br /&gt;
  &amp;gt;&amp;gt; configCluster&lt;br /&gt;
 &lt;br /&gt;
 4) Close matlab&lt;br /&gt;
 &lt;br /&gt;
 5) To familiarize with the submission procedure you could copy the content of the directory:&lt;br /&gt;
 #*  /u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION&lt;br /&gt;
 &lt;br /&gt;
 7) In a local test directory and issue:&lt;br /&gt;
 #*  ./matlab_batch_parallel_job_submit.sh -t 3 -s 20 -m 4 -v 9.7 -f [[Hoffman2:parpoolexample.m | myparpooltest_batch.m]]&lt;br /&gt;
 &lt;br /&gt;
 8) Look into the file:&lt;br /&gt;
 #*  /u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION/README.HOWTO&lt;br /&gt;
 &lt;br /&gt;
 9) and/or issues:&lt;br /&gt;
 #* ./matlab_batch_parallel_job_submit.sh --help&lt;br /&gt;
&lt;br /&gt;
==Software Versions==&lt;br /&gt;
&lt;br /&gt;
The current default version of MATLAB on Hoffman2 is R2015b, but more recent versions are also available for use:&lt;br /&gt;
&lt;br /&gt;
 R2016b  or  matlab/9.1&lt;br /&gt;
 R2019b  or  matlab/9.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[https://www.hoffman2.idre.ucla.edu/matlab_toolboxes/ MATLAB on Hoffman2]&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4328</id>
		<title>Hoffman2:MATLAB</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4328"/>
		<updated>2020-04-02T18:29:28Z</updated>

		<summary type="html">&lt;p&gt;Ravi: /* Running Parallel Jobs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Hoffman2|Back to all things Hoffman2]]&lt;br /&gt;
&lt;br /&gt;
MATLAB is not a small program and it can handle some fairly complex graphics.  As such, this is not something suitable to be used on a login node of Hoffman2.  But that&#039;s already been thought of by the great people at ATS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GUI==&lt;br /&gt;
To run a full GUI session of MATLAB, execute&lt;br /&gt;
 $ matlab&lt;br /&gt;
That&#039;s it, no flags, no frills, nothing else.  Hoffman2 will automatically check out an appropriate interactive node for you to run MATLAB on.  All you have to do is provide a time limit (in hours) when they ask you&lt;br /&gt;
 Enter a time limit for your session, in hours (default 2)&lt;br /&gt;
 &amp;lt;or quit&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line==&lt;br /&gt;
If you don&#039;t need the fancy GUI and just want the command line, execute&lt;br /&gt;
 $ matlab -nodesktop&lt;br /&gt;
and then supply a time limit when asked.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Since this uses interactive nodes, the maximum time limit you can request is 24 hours.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==License Check==&lt;br /&gt;
With so many people using Hoffman2 and MATLAB, sometimes licenses run out.  Using this helpful script will give you some insight as to the license situation.&lt;br /&gt;
&lt;br /&gt;
[[Hoffman2:Scripts:matlab_license_check.sh|matlab_license_check.sh]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Large Computations==&lt;br /&gt;
If you are doing a larger computation, &#039;&#039;&#039;running MATLAB normally will probably not work well.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the default method of launching MATLAB on Hoffman2 checks out an [[Hoffman2:Interactive_Sessions | interactive node]] with only 1GB of RAM.  This is woefully small if you are working with ten minutes of dense array EEG.  Use the following steps to launch a more capable MATLAB session.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ # Request an interactive node with time and memory required. In this case, 10 hours and 4GB RAM&lt;br /&gt;
 $ qrsh -l i,h_rt=10:00:00,h_data=4G&lt;br /&gt;
 $ # Load the module MATLAB&lt;br /&gt;
 $ # You can also load different versions of MATLAB:&lt;br /&gt;
 $ #   module load matlab/7.14&lt;br /&gt;
 $ #  or&lt;br /&gt;
 $ #   module load matlab/8.1&lt;br /&gt;
 $ # Try using &amp;quot;module help&amp;quot; for more information&lt;br /&gt;
 $ module load matlab&lt;br /&gt;
 $ # Launch MATLAB&lt;br /&gt;
 $ matlab&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Running Parallel Jobs==&lt;br /&gt;
IDRE team provided the following solution to use parallel pool in Matlab version 9.7&lt;br /&gt;
&lt;br /&gt;
 #  request an interactive session with for example: &lt;br /&gt;
 #*  $qrsh -l h_data=4G -pe shared 1&lt;br /&gt;
 &lt;br /&gt;
 #  when the interactive session is awarded issue:&lt;br /&gt;
 #* $module load matlab/9.7&lt;br /&gt;
 #* $matlab &amp;amp;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 #when the matlab desktop opens, issue at the matlab command prompt:&lt;br /&gt;
  &amp;gt;&amp;gt;rehash toolboxcache&lt;br /&gt;
  &amp;gt;&amp;gt;configCluster&lt;br /&gt;
 &lt;br /&gt;
 #close matlab&lt;br /&gt;
 &lt;br /&gt;
 #To familiarize with the submission procedure you could copy the content of the directory:&lt;br /&gt;
 /u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION&lt;br /&gt;
 &lt;br /&gt;
 #In a local test directory and issue:&lt;br /&gt;
 ./matlab_batch_parallel_job_submit.sh -t 3 -s 20 -m 4 -v 9.7 -f [[Hoffman2:parpoolexample.m | myparpooltest_batch.m]]&lt;br /&gt;
 &lt;br /&gt;
 #Look into the file:&lt;br /&gt;
  /u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION/README.HOWTO&lt;br /&gt;
 &lt;br /&gt;
      and/or issues:&lt;br /&gt;
 &lt;br /&gt;
      ./matlab_batch_parallel_job_submit.sh --help&lt;br /&gt;
&lt;br /&gt;
==Software Versions==&lt;br /&gt;
&lt;br /&gt;
The current default version of MATLAB on Hoffman2 is R2015b, but more recent versions are also available for use:&lt;br /&gt;
&lt;br /&gt;
 R2016b  or  matlab/9.1&lt;br /&gt;
 R2019b  or  matlab/9.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[https://www.hoffman2.idre.ucla.edu/matlab_toolboxes/ MATLAB on Hoffman2]&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4327</id>
		<title>Hoffman2:MATLAB</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4327"/>
		<updated>2020-04-02T18:27:07Z</updated>

		<summary type="html">&lt;p&gt;Ravi: /* Running Parallel Jobs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Hoffman2|Back to all things Hoffman2]]&lt;br /&gt;
&lt;br /&gt;
MATLAB is not a small program and it can handle some fairly complex graphics.  As such, this is not something suitable to be used on a login node of Hoffman2.  But that&#039;s already been thought of by the great people at ATS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GUI==&lt;br /&gt;
To run a full GUI session of MATLAB, execute&lt;br /&gt;
 $ matlab&lt;br /&gt;
That&#039;s it, no flags, no frills, nothing else.  Hoffman2 will automatically check out an appropriate interactive node for you to run MATLAB on.  All you have to do is provide a time limit (in hours) when they ask you&lt;br /&gt;
 Enter a time limit for your session, in hours (default 2)&lt;br /&gt;
 &amp;lt;or quit&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line==&lt;br /&gt;
If you don&#039;t need the fancy GUI and just want the command line, execute&lt;br /&gt;
 $ matlab -nodesktop&lt;br /&gt;
and then supply a time limit when asked.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Since this uses interactive nodes, the maximum time limit you can request is 24 hours.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==License Check==&lt;br /&gt;
With so many people using Hoffman2 and MATLAB, sometimes licenses run out.  Using this helpful script will give you some insight as to the license situation.&lt;br /&gt;
&lt;br /&gt;
[[Hoffman2:Scripts:matlab_license_check.sh|matlab_license_check.sh]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Large Computations==&lt;br /&gt;
If you are doing a larger computation, &#039;&#039;&#039;running MATLAB normally will probably not work well.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the default method of launching MATLAB on Hoffman2 checks out an [[Hoffman2:Interactive_Sessions | interactive node]] with only 1GB of RAM.  This is woefully small if you are working with ten minutes of dense array EEG.  Use the following steps to launch a more capable MATLAB session.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ # Request an interactive node with time and memory required. In this case, 10 hours and 4GB RAM&lt;br /&gt;
 $ qrsh -l i,h_rt=10:00:00,h_data=4G&lt;br /&gt;
 $ # Load the module MATLAB&lt;br /&gt;
 $ # You can also load different versions of MATLAB:&lt;br /&gt;
 $ #   module load matlab/7.14&lt;br /&gt;
 $ #  or&lt;br /&gt;
 $ #   module load matlab/8.1&lt;br /&gt;
 $ # Try using &amp;quot;module help&amp;quot; for more information&lt;br /&gt;
 $ module load matlab&lt;br /&gt;
 $ # Launch MATLAB&lt;br /&gt;
 $ matlab&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Running Parallel Jobs==&lt;br /&gt;
IDRE team provided the following solution to use parallel pool in Matlab version 9.7&lt;br /&gt;
&lt;br /&gt;
 # request an interactive session with for example: &lt;br /&gt;
 #* $qrsh -l h_data=4G -pe shared 1&lt;br /&gt;
 &lt;br /&gt;
 #when the interactive session is awarded issue:&lt;br /&gt;
  $module load matlab/9.7&lt;br /&gt;
  $matlab &amp;amp;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 #when the matlab desktop opens, issue at the matlab command prompt:&lt;br /&gt;
  &amp;gt;&amp;gt;rehash toolboxcache&lt;br /&gt;
  &amp;gt;&amp;gt;configCluster&lt;br /&gt;
 &lt;br /&gt;
 #close matlab&lt;br /&gt;
 &lt;br /&gt;
 #To familiarize with the submission procedure you could copy the content of the directory:&lt;br /&gt;
 /u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION&lt;br /&gt;
 &lt;br /&gt;
 #In a local test directory and issue:&lt;br /&gt;
 ./matlab_batch_parallel_job_submit.sh -t 3 -s 20 -m 4 -v 9.7 -f [[Hoffman2:parpoolexample.m | myparpooltest_batch.m]]&lt;br /&gt;
 &lt;br /&gt;
 #Look into the file:&lt;br /&gt;
  /u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION/README.HOWTO&lt;br /&gt;
 &lt;br /&gt;
      and/or issues:&lt;br /&gt;
 &lt;br /&gt;
      ./matlab_batch_parallel_job_submit.sh --help&lt;br /&gt;
&lt;br /&gt;
==Software Versions==&lt;br /&gt;
&lt;br /&gt;
The current default version of MATLAB on Hoffman2 is R2015b, but more recent versions are also available for use:&lt;br /&gt;
&lt;br /&gt;
 R2016b  or  matlab/9.1&lt;br /&gt;
 R2019b  or  matlab/9.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[https://www.hoffman2.idre.ucla.edu/matlab_toolboxes/ MATLAB on Hoffman2]&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4326</id>
		<title>Hoffman2:MATLAB</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4326"/>
		<updated>2020-04-02T18:26:03Z</updated>

		<summary type="html">&lt;p&gt;Ravi: /* Running Parallel Jobs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Hoffman2|Back to all things Hoffman2]]&lt;br /&gt;
&lt;br /&gt;
MATLAB is not a small program and it can handle some fairly complex graphics.  As such, this is not something suitable to be used on a login node of Hoffman2.  But that&#039;s already been thought of by the great people at ATS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GUI==&lt;br /&gt;
To run a full GUI session of MATLAB, execute&lt;br /&gt;
 $ matlab&lt;br /&gt;
That&#039;s it, no flags, no frills, nothing else.  Hoffman2 will automatically check out an appropriate interactive node for you to run MATLAB on.  All you have to do is provide a time limit (in hours) when they ask you&lt;br /&gt;
 Enter a time limit for your session, in hours (default 2)&lt;br /&gt;
 &amp;lt;or quit&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line==&lt;br /&gt;
If you don&#039;t need the fancy GUI and just want the command line, execute&lt;br /&gt;
 $ matlab -nodesktop&lt;br /&gt;
and then supply a time limit when asked.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Since this uses interactive nodes, the maximum time limit you can request is 24 hours.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==License Check==&lt;br /&gt;
With so many people using Hoffman2 and MATLAB, sometimes licenses run out.  Using this helpful script will give you some insight as to the license situation.&lt;br /&gt;
&lt;br /&gt;
[[Hoffman2:Scripts:matlab_license_check.sh|matlab_license_check.sh]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Large Computations==&lt;br /&gt;
If you are doing a larger computation, &#039;&#039;&#039;running MATLAB normally will probably not work well.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the default method of launching MATLAB on Hoffman2 checks out an [[Hoffman2:Interactive_Sessions | interactive node]] with only 1GB of RAM.  This is woefully small if you are working with ten minutes of dense array EEG.  Use the following steps to launch a more capable MATLAB session.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ # Request an interactive node with time and memory required. In this case, 10 hours and 4GB RAM&lt;br /&gt;
 $ qrsh -l i,h_rt=10:00:00,h_data=4G&lt;br /&gt;
 $ # Load the module MATLAB&lt;br /&gt;
 $ # You can also load different versions of MATLAB:&lt;br /&gt;
 $ #   module load matlab/7.14&lt;br /&gt;
 $ #  or&lt;br /&gt;
 $ #   module load matlab/8.1&lt;br /&gt;
 $ # Try using &amp;quot;module help&amp;quot; for more information&lt;br /&gt;
 $ module load matlab&lt;br /&gt;
 $ # Launch MATLAB&lt;br /&gt;
 $ matlab&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Running Parallel Jobs==&lt;br /&gt;
IDRE team provided the following solution to use parallel pool in Matlab version 9.7&lt;br /&gt;
&lt;br /&gt;
 #request an interactive session with for example: &lt;br /&gt;
  $qrsh -l h_data=4G -pe shared 1&lt;br /&gt;
 &lt;br /&gt;
 #when the interactive session is awarded issue:&lt;br /&gt;
  $module load matlab/9.7&lt;br /&gt;
  $matlab &amp;amp;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 #when the matlab desktop opens, issue at the matlab command prompt:&lt;br /&gt;
  &amp;gt;&amp;gt;rehash toolboxcache&lt;br /&gt;
  &amp;gt;&amp;gt;configCluster&lt;br /&gt;
 &lt;br /&gt;
 #close matlab&lt;br /&gt;
 &lt;br /&gt;
 #To familiarize with the submission procedure you could copy the content of the directory:&lt;br /&gt;
 /u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION&lt;br /&gt;
 &lt;br /&gt;
 #In a local test directory and issue:&lt;br /&gt;
 ./matlab_batch_parallel_job_submit.sh -t 3 -s 20 -m 4 -v 9.7 -f [[Hoffman2:parpoolexample.m | myparpooltest_batch.m]]&lt;br /&gt;
 &lt;br /&gt;
 #Look into the file:&lt;br /&gt;
  /u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION/README.HOWTO&lt;br /&gt;
 &lt;br /&gt;
      and/or issues:&lt;br /&gt;
 &lt;br /&gt;
      ./matlab_batch_parallel_job_submit.sh --help&lt;br /&gt;
&lt;br /&gt;
==Software Versions==&lt;br /&gt;
&lt;br /&gt;
The current default version of MATLAB on Hoffman2 is R2015b, but more recent versions are also available for use:&lt;br /&gt;
&lt;br /&gt;
 R2016b  or  matlab/9.1&lt;br /&gt;
 R2019b  or  matlab/9.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[https://www.hoffman2.idre.ucla.edu/matlab_toolboxes/ MATLAB on Hoffman2]&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4325</id>
		<title>Hoffman2:MATLAB</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4325"/>
		<updated>2020-04-02T18:23:19Z</updated>

		<summary type="html">&lt;p&gt;Ravi: /* Running Parallel Jobs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Hoffman2|Back to all things Hoffman2]]&lt;br /&gt;
&lt;br /&gt;
MATLAB is not a small program and it can handle some fairly complex graphics.  As such, this is not something suitable to be used on a login node of Hoffman2.  But that&#039;s already been thought of by the great people at ATS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GUI==&lt;br /&gt;
To run a full GUI session of MATLAB, execute&lt;br /&gt;
 $ matlab&lt;br /&gt;
That&#039;s it, no flags, no frills, nothing else.  Hoffman2 will automatically check out an appropriate interactive node for you to run MATLAB on.  All you have to do is provide a time limit (in hours) when they ask you&lt;br /&gt;
 Enter a time limit for your session, in hours (default 2)&lt;br /&gt;
 &amp;lt;or quit&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line==&lt;br /&gt;
If you don&#039;t need the fancy GUI and just want the command line, execute&lt;br /&gt;
 $ matlab -nodesktop&lt;br /&gt;
and then supply a time limit when asked.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Since this uses interactive nodes, the maximum time limit you can request is 24 hours.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==License Check==&lt;br /&gt;
With so many people using Hoffman2 and MATLAB, sometimes licenses run out.  Using this helpful script will give you some insight as to the license situation.&lt;br /&gt;
&lt;br /&gt;
[[Hoffman2:Scripts:matlab_license_check.sh|matlab_license_check.sh]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Large Computations==&lt;br /&gt;
If you are doing a larger computation, &#039;&#039;&#039;running MATLAB normally will probably not work well.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the default method of launching MATLAB on Hoffman2 checks out an [[Hoffman2:Interactive_Sessions | interactive node]] with only 1GB of RAM.  This is woefully small if you are working with ten minutes of dense array EEG.  Use the following steps to launch a more capable MATLAB session.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ # Request an interactive node with time and memory required. In this case, 10 hours and 4GB RAM&lt;br /&gt;
 $ qrsh -l i,h_rt=10:00:00,h_data=4G&lt;br /&gt;
 $ # Load the module MATLAB&lt;br /&gt;
 $ # You can also load different versions of MATLAB:&lt;br /&gt;
 $ #   module load matlab/7.14&lt;br /&gt;
 $ #  or&lt;br /&gt;
 $ #   module load matlab/8.1&lt;br /&gt;
 $ # Try using &amp;quot;module help&amp;quot; for more information&lt;br /&gt;
 $ module load matlab&lt;br /&gt;
 $ # Launch MATLAB&lt;br /&gt;
 $ matlab&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Running Parallel Jobs==&lt;br /&gt;
IDRE team provided the following solution to use parallel pool in Matlab version 9.7&lt;br /&gt;
&lt;br /&gt;
 1) request an interactive session with for example: &lt;br /&gt;
  $qrsh -l h_data=4G -pe shared 1&lt;br /&gt;
 &lt;br /&gt;
 2) when the interactive session is awarded issue:&lt;br /&gt;
  $module load matlab/9.7&lt;br /&gt;
  $matlab &amp;amp;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 3) when the matlab desktop opens, issue at the matlab command prompt:&lt;br /&gt;
  &amp;gt;&amp;gt;rehash toolboxcache&lt;br /&gt;
  &amp;gt;&amp;gt;configCluster&lt;br /&gt;
 &lt;br /&gt;
 4) close matlab&lt;br /&gt;
 &lt;br /&gt;
 5) to familiarize with the submission procedure you could copy the content of the directory:&lt;br /&gt;
 &lt;br /&gt;
     /u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION&lt;br /&gt;
 &lt;br /&gt;
     in a local test directory and issue:&lt;br /&gt;
 &lt;br /&gt;
     ./matlab_batch_parallel_job_submit.sh -t 3 -s 20 -m 4 -v 9.7 -f [[Hoffman2:parpoolexample.m | myparpooltest_batch.m]]&lt;br /&gt;
 &lt;br /&gt;
      look into the file:&lt;br /&gt;
 &lt;br /&gt;
      /u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION/README.HOWTO&lt;br /&gt;
 &lt;br /&gt;
      and/or issues:&lt;br /&gt;
 &lt;br /&gt;
      ./matlab_batch_parallel_job_submit.sh --help&lt;br /&gt;
&lt;br /&gt;
==Software Versions==&lt;br /&gt;
&lt;br /&gt;
The current default version of MATLAB on Hoffman2 is R2015b, but more recent versions are also available for use:&lt;br /&gt;
&lt;br /&gt;
 R2016b  or  matlab/9.1&lt;br /&gt;
 R2019b  or  matlab/9.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[https://www.hoffman2.idre.ucla.edu/matlab_toolboxes/ MATLAB on Hoffman2]&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4324</id>
		<title>Hoffman2:MATLAB</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4324"/>
		<updated>2020-04-02T18:22:19Z</updated>

		<summary type="html">&lt;p&gt;Ravi: /* Running Parallel Jobs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Hoffman2|Back to all things Hoffman2]]&lt;br /&gt;
&lt;br /&gt;
MATLAB is not a small program and it can handle some fairly complex graphics.  As such, this is not something suitable to be used on a login node of Hoffman2.  But that&#039;s already been thought of by the great people at ATS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GUI==&lt;br /&gt;
To run a full GUI session of MATLAB, execute&lt;br /&gt;
 $ matlab&lt;br /&gt;
That&#039;s it, no flags, no frills, nothing else.  Hoffman2 will automatically check out an appropriate interactive node for you to run MATLAB on.  All you have to do is provide a time limit (in hours) when they ask you&lt;br /&gt;
 Enter a time limit for your session, in hours (default 2)&lt;br /&gt;
 &amp;lt;or quit&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line==&lt;br /&gt;
If you don&#039;t need the fancy GUI and just want the command line, execute&lt;br /&gt;
 $ matlab -nodesktop&lt;br /&gt;
and then supply a time limit when asked.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Since this uses interactive nodes, the maximum time limit you can request is 24 hours.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==License Check==&lt;br /&gt;
With so many people using Hoffman2 and MATLAB, sometimes licenses run out.  Using this helpful script will give you some insight as to the license situation.&lt;br /&gt;
&lt;br /&gt;
[[Hoffman2:Scripts:matlab_license_check.sh|matlab_license_check.sh]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Large Computations==&lt;br /&gt;
If you are doing a larger computation, &#039;&#039;&#039;running MATLAB normally will probably not work well.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the default method of launching MATLAB on Hoffman2 checks out an [[Hoffman2:Interactive_Sessions | interactive node]] with only 1GB of RAM.  This is woefully small if you are working with ten minutes of dense array EEG.  Use the following steps to launch a more capable MATLAB session.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ # Request an interactive node with time and memory required. In this case, 10 hours and 4GB RAM&lt;br /&gt;
 $ qrsh -l i,h_rt=10:00:00,h_data=4G&lt;br /&gt;
 $ # Load the module MATLAB&lt;br /&gt;
 $ # You can also load different versions of MATLAB:&lt;br /&gt;
 $ #   module load matlab/7.14&lt;br /&gt;
 $ #  or&lt;br /&gt;
 $ #   module load matlab/8.1&lt;br /&gt;
 $ # Try using &amp;quot;module help&amp;quot; for more information&lt;br /&gt;
 $ module load matlab&lt;br /&gt;
 $ # Launch MATLAB&lt;br /&gt;
 $ matlab&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Running Parallel Jobs==&lt;br /&gt;
IDRE team provided the following solution to use parallel pool in Matlab version 9.7&lt;br /&gt;
&lt;br /&gt;
 1) request an interactive session with for example: &lt;br /&gt;
  $qrsh -l h_data=4G -pe shared 1&lt;br /&gt;
 &lt;br /&gt;
 2) when the interactive session is awarded issue:&lt;br /&gt;
  $module load matlab/9.7&lt;br /&gt;
  $matlab &amp;amp;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 3) when the matlab desktop opens, issue at the matlab command prompt:&lt;br /&gt;
  &amp;gt;&amp;gt;rehash toolboxcache&lt;br /&gt;
  &amp;gt;&amp;gt;configCluster&lt;br /&gt;
 &lt;br /&gt;
 4) close matlab&lt;br /&gt;
 &lt;br /&gt;
 5) to familiarize with the submission procedure you could copy the content of the directory:&lt;br /&gt;
 &lt;br /&gt;
  /u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION&lt;br /&gt;
 &lt;br /&gt;
 in a local test directory and issue:&lt;br /&gt;
 &lt;br /&gt;
 ./matlab_batch_parallel_job_submit.sh -t 3 -s 20 -m 4 -v 9.7 -f [[Hoffman2:parpoolexample.m | myparpooltest_batch.m]]&lt;br /&gt;
 &lt;br /&gt;
 look into the file:&lt;br /&gt;
 &lt;br /&gt;
 /u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION/README.HOWTO&lt;br /&gt;
 &lt;br /&gt;
 and/or issues:&lt;br /&gt;
 &lt;br /&gt;
 ./matlab_batch_parallel_job_submit.sh --help&lt;br /&gt;
&lt;br /&gt;
==Software Versions==&lt;br /&gt;
&lt;br /&gt;
The current default version of MATLAB on Hoffman2 is R2015b, but more recent versions are also available for use:&lt;br /&gt;
&lt;br /&gt;
 R2016b  or  matlab/9.1&lt;br /&gt;
 R2019b  or  matlab/9.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[https://www.hoffman2.idre.ucla.edu/matlab_toolboxes/ MATLAB on Hoffman2]&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:parpoolexample.m&amp;diff=4323</id>
		<title>Hoffman2:parpoolexample.m</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:parpoolexample.m&amp;diff=4323"/>
		<updated>2020-04-02T18:19:26Z</updated>

		<summary type="html">&lt;p&gt;Ravi: Created page with &amp;quot;Example Script:   %%%% parpoolexample.m START %%%%%    n=20  p = parpool(&amp;#039;local&amp;#039;,n);  poolobj = gcp(&amp;#039;nocreate&amp;#039;); % If no pool, do not create new one.  if isempty(poolobj)...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Example Script: &lt;br /&gt;
 %%%% parpoolexample.m START %%%%%&lt;br /&gt;
 &lt;br /&gt;
 n=20&lt;br /&gt;
 p = parpool(&#039;local&#039;,n);&lt;br /&gt;
 poolobj = gcp(&#039;nocreate&#039;); % If no pool, do not create new one.&lt;br /&gt;
 if isempty(poolobj)&lt;br /&gt;
     poolsize = 0;&lt;br /&gt;
 else&lt;br /&gt;
     poolsize = poolobj.NumWorkers&lt;br /&gt;
 end&lt;br /&gt;
 tic&lt;br /&gt;
 ticBytes(gcp);&lt;br /&gt;
 n = 1024;&lt;br /&gt;
 A = zeros(n);&lt;br /&gt;
 parfor (i = 1:n)&lt;br /&gt;
     A(i,:) = (1:n) .* sin(i*2*pi/1024);&lt;br /&gt;
 end&lt;br /&gt;
 tocBytes(gcp)&lt;br /&gt;
 toc&lt;br /&gt;
 delete(p)&lt;br /&gt;
&lt;br /&gt;
 %%%% parpoolexample.m STOP %%%%%&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2&amp;diff=4322</id>
		<title>Hoffman2</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2&amp;diff=4322"/>
		<updated>2020-04-02T18:19:10Z</updated>

		<summary type="html">&lt;p&gt;Ravi: /* Software */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A compilation of lab know-how regarding the Hoffman2 Computing Cluster.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Anyone new to the lab and using Hoffman2 NEEDS to read the first section to have adequate working knowledge of the system. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting Started ==&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
Hoffman2 is a Computing Cluster at UCLA, find out how it generally works so you know how to use it.&lt;br /&gt;
: [[Hoffman2:Introduction]]&lt;br /&gt;
&lt;br /&gt;
=== Getting an Account ===&lt;br /&gt;
You know what it is, now you want to use it. First you need an account.&lt;br /&gt;
: [[Hoffman2:Getting an Account]]&lt;br /&gt;
&lt;br /&gt;
=== Accessing the Cluster ===&lt;br /&gt;
Now how do you use that account to access the cluster?&lt;br /&gt;
: [[Hoffman2:Accessing the Cluster]]&lt;br /&gt;
&lt;br /&gt;
=== Working in a Linux Environment ===&lt;br /&gt;
Never heard of a command line before? Vaguely know what &amp;quot;permissions&amp;quot; are and have no idea how to navigate a filesystem? This page is meant to take the scare out of the words &amp;quot;command line&amp;quot; so you can actually use Hoffman2.&lt;br /&gt;
: [[Hoffman2:Linux Tutorial]]&lt;br /&gt;
&lt;br /&gt;
=== Quotas ===&lt;br /&gt;
Resources are not infinite, and disk space is a resource. Find out how to manage your disk space usage to stay under quota.&lt;br /&gt;
: [[Hoffman2:Quotas]]&lt;br /&gt;
&lt;br /&gt;
=== Environmental Modules ===&lt;br /&gt;
How to get access to CCN-supported software. &lt;br /&gt;
: [[Hoffman2:Modules]]&lt;br /&gt;
&lt;br /&gt;
=== Changing Passwords ===&lt;br /&gt;
How to change your Hoffman2 password.&lt;br /&gt;
: [[Hoffman2:Changing Passwords]]&lt;br /&gt;
&lt;br /&gt;
=== Password-less Logins ===&lt;br /&gt;
Log in to Hoffman2 without typing your password every time.&lt;br /&gt;
: [https://www.hoffman2.idre.ucla.edu/access/passwordless_ssh/ Password-less ssh]&lt;br /&gt;
&lt;br /&gt;
== Computing ==&lt;br /&gt;
You can find your way through Hoffman2, now it is time to start making things happen.&lt;br /&gt;
&lt;br /&gt;
=== Software Tools ===&lt;br /&gt;
You&#039;ve got your account, you are logged on, now how do you get to using a real software tool?&lt;br /&gt;
: [[Hoffman2:Software Tools]]&lt;br /&gt;
&lt;br /&gt;
=== Run Your Jobs ===&lt;br /&gt;
You can run your job by starting an interactive session or submitting it with batch mode.&lt;br /&gt;
&amp;lt;!--: [[Hoffman2:Submitting Jobs]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--: [[Hoffman2:Interactive Mode]]--&amp;gt;&lt;br /&gt;
:[[Hoffman2:Interactive_Sessions]]&lt;br /&gt;
:[[Hoffman2:Batch Mode]]&lt;br /&gt;
:[[Hoffman2:Job Array]]&lt;br /&gt;
&lt;br /&gt;
=== Monitoring Jobs ===&lt;br /&gt;
Right after they zap their robot monster to life, every mad scientist wishes they had the tools to check on or stop their creation. Now that you can submit jobs, you need to be able to check on them and stop them if they start terrorizing downtown Tokyo.&lt;br /&gt;
: [[Hoffman2:Monitoring Jobs]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--=== Interactive Sessions ===&lt;br /&gt;
Some software tools need you to interact with them while they work. Other times you just need to be able to run your script over and over while you work to eradicate all of its bugs. Enter &#039;&#039;Interactive&#039;&#039; Sessions.&lt;br /&gt;
: [[Hoffman2:Interactive Sessions]]--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Software ==&lt;br /&gt;
=== MATLAB ===&lt;br /&gt;
How to use MATLAB on the cluster. It is easier than you think. (Well, maybe...)&lt;br /&gt;
: [[Hoffman2:MATLAB]]&lt;br /&gt;
: [[Hoffman2:parpoolexample.m]]&lt;br /&gt;
&lt;br /&gt;
==== Compiling MATLAB ====&lt;br /&gt;
So you have a MATLAB script, but you don&#039;t need to GUI open all night to have it process your data. How to submit MATLAB jobs to Hoffman2.&lt;br /&gt;
: [[Hoffman2:Compiling MATLAB]]&lt;br /&gt;
&lt;br /&gt;
==== EEGLAB ====&lt;br /&gt;
We try to maintain the three most recent versions of EEGLAB for your convenience. Make sure to add it to your MATLAB path.&lt;br /&gt;
: [[Hoffman2:MATLAB:EEGLAB]]&lt;br /&gt;
&lt;br /&gt;
===== EEGLAB Jobs =====&lt;br /&gt;
Processing multiple subjects through EEGLAB can be tiring and inconvenient if you do it by hand.  Learn how to make scripts that run as jobs leveraging the power of Hoffman2.&lt;br /&gt;
: [[Hoffman2:MATLAB:EEGLAB:Jobs]]&lt;br /&gt;
&lt;br /&gt;
==== SPM Compiled (Batch) ====&lt;br /&gt;
Maybe FSL isn&#039;t your cup of tea for neuroimaging work.  SPM is a capable alternative and, even though it is MATLAB based, it has a compiled version that will let you leverage the power of the cluster.&lt;br /&gt;
: [[Hoffman2:MATLAB:SPM]]&lt;br /&gt;
&lt;br /&gt;
=== R ===&lt;br /&gt;
You are probably a statistician, or you just prefer open source software. Here&#039;s how to run R on Hoffman2.&lt;br /&gt;
: [[Hoffman2:R]]&lt;br /&gt;
&lt;br /&gt;
=== WEKA ===&lt;br /&gt;
If machine learning is your thing, maybe you&#039;ve heard of WEKA. If not, maybe it will be your new best friend.&lt;br /&gt;
: [[Hoffman2:WEKA]]&lt;br /&gt;
&lt;br /&gt;
=== FSL ===&lt;br /&gt;
FSL is a comprehensive library of analysis tools for FMRI, MRI and DTI brain imaging data.&lt;br /&gt;
: [[Hoffman2:FSL]]&lt;br /&gt;
&lt;br /&gt;
=== Jupyter Notebook ===&lt;br /&gt;
: [[Hoffman2:JupyterNotebook]]&lt;br /&gt;
&lt;br /&gt;
== Productivity ==&lt;br /&gt;
How about streamlining some of those tasks, or getting more things done.&lt;br /&gt;
&lt;br /&gt;
=== Scripts ===&lt;br /&gt;
All of the difficulties you are experiencing now have probably been experienced before by someone else. And for that reason we already have scripts to simplify your life.&lt;br /&gt;
: [[Hoffman2:Scripts]]&lt;br /&gt;
&lt;br /&gt;
=== Data Transfer ===&lt;br /&gt;
All dressed up with no where to go? That&#039;s how Hoffman2 feels if you don&#039;t give it any data to work with. Find out how to avoid hurting the Cluster&#039;s feelings.&lt;br /&gt;
: [[Hoffman2:Data Transfer]]&lt;br /&gt;
&lt;br /&gt;
=== Sharing Filesystems ===&lt;br /&gt;
All you want to do is be able to look at your precious data. But it is locked up on Hoffman2 and you want to use tools on your computer to look at it. There&#039;s an app for that.&lt;br /&gt;
: [[Hoffman2:Sharing Filesystems]]&lt;br /&gt;
&lt;br /&gt;
=== Tools ===&lt;br /&gt;
Simple tools that will help your productivity.&lt;br /&gt;
: [[Hoffman2:Tools]]&lt;br /&gt;
&lt;br /&gt;
=== Mailing List ===&lt;br /&gt;
Information about the the CCN-Hoffman mailing list, including how to join the list.&lt;br /&gt;
: [[Hoffman2:Mailing List]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == FAQ ==&lt;br /&gt;
Wesley&#039;s Usage, so you can plan around it and ask him to stop beating the cluster up.&lt;br /&gt;
: [[Hoffman2:WTK Usage]]&lt;br /&gt;
&lt;br /&gt;
Delete/Old Hoffman2 Pages&lt;br /&gt;
: [[Hoffman2:Archive]] --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4315</id>
		<title>Hoffman2:MATLAB</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4315"/>
		<updated>2020-04-02T17:57:11Z</updated>

		<summary type="html">&lt;p&gt;Ravi: /* Running Parallel Jobs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Hoffman2|Back to all things Hoffman2]]&lt;br /&gt;
&lt;br /&gt;
MATLAB is not a small program and it can handle some fairly complex graphics.  As such, this is not something suitable to be used on a login node of Hoffman2.  But that&#039;s already been thought of by the great people at ATS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GUI==&lt;br /&gt;
To run a full GUI session of MATLAB, execute&lt;br /&gt;
 $ matlab&lt;br /&gt;
That&#039;s it, no flags, no frills, nothing else.  Hoffman2 will automatically check out an appropriate interactive node for you to run MATLAB on.  All you have to do is provide a time limit (in hours) when they ask you&lt;br /&gt;
 Enter a time limit for your session, in hours (default 2)&lt;br /&gt;
 &amp;lt;or quit&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line==&lt;br /&gt;
If you don&#039;t need the fancy GUI and just want the command line, execute&lt;br /&gt;
 $ matlab -nodesktop&lt;br /&gt;
and then supply a time limit when asked.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Since this uses interactive nodes, the maximum time limit you can request is 24 hours.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==License Check==&lt;br /&gt;
With so many people using Hoffman2 and MATLAB, sometimes licenses run out.  Using this helpful script will give you some insight as to the license situation.&lt;br /&gt;
&lt;br /&gt;
[[Hoffman2:Scripts:matlab_license_check.sh|matlab_license_check.sh]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Large Computations==&lt;br /&gt;
If you are doing a larger computation, &#039;&#039;&#039;running MATLAB normally will probably not work well.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the default method of launching MATLAB on Hoffman2 checks out an [[Hoffman2:Interactive_Sessions | interactive node]] with only 1GB of RAM.  This is woefully small if you are working with ten minutes of dense array EEG.  Use the following steps to launch a more capable MATLAB session.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ # Request an interactive node with time and memory required. In this case, 10 hours and 4GB RAM&lt;br /&gt;
 $ qrsh -l i,h_rt=10:00:00,h_data=4G&lt;br /&gt;
 $ # Load the module MATLAB&lt;br /&gt;
 $ # You can also load different versions of MATLAB:&lt;br /&gt;
 $ #   module load matlab/7.14&lt;br /&gt;
 $ #  or&lt;br /&gt;
 $ #   module load matlab/8.1&lt;br /&gt;
 $ # Try using &amp;quot;module help&amp;quot; for more information&lt;br /&gt;
 $ module load matlab&lt;br /&gt;
 $ # Launch MATLAB&lt;br /&gt;
 $ matlab&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Running Parallel Jobs==&lt;br /&gt;
IDRE team provided the following solution to use parallel pool in Matlab version 9.7&lt;br /&gt;
&lt;br /&gt;
 1) request an interactive session with for example: &lt;br /&gt;
  $qrsh -l h_data=4G -pe shared 1&lt;br /&gt;
 &lt;br /&gt;
 2) when the interactive session is awarded issue:&lt;br /&gt;
  $module load matlab/9.7&lt;br /&gt;
  $matlab &amp;amp;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 3) when the matlab desktop opens, issue at the matlab command prompt:&lt;br /&gt;
  &amp;gt;&amp;gt;rehash toolboxcache&lt;br /&gt;
  &amp;gt;&amp;gt;configCluster&lt;br /&gt;
 &lt;br /&gt;
 4) close matlab&lt;br /&gt;
 &lt;br /&gt;
 5) to familiarize with the submission procedure you could copy the content of the directory:&lt;br /&gt;
 &lt;br /&gt;
  /u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION&lt;br /&gt;
 &lt;br /&gt;
 in a local test directory and issue:&lt;br /&gt;
 &lt;br /&gt;
 ./matlab_batch_parallel_job_submit.sh -t 3 -s 20 -m 4 -v 9.7 -f myparpooltest_batch.m&lt;br /&gt;
 &lt;br /&gt;
 look into the file:&lt;br /&gt;
 &lt;br /&gt;
 /u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION/README.HOWTO&lt;br /&gt;
 &lt;br /&gt;
 and/or issues:&lt;br /&gt;
 &lt;br /&gt;
 ./matlab_batch_parallel_job_submit.sh --help&lt;br /&gt;
&lt;br /&gt;
==Software Versions==&lt;br /&gt;
&lt;br /&gt;
The current default version of MATLAB on Hoffman2 is R2015b, but more recent versions are also available for use:&lt;br /&gt;
&lt;br /&gt;
 R2016b  or  matlab/9.1&lt;br /&gt;
 R2019b  or  matlab/9.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[https://www.hoffman2.idre.ucla.edu/matlab_toolboxes/ MATLAB on Hoffman2]&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4314</id>
		<title>Hoffman2:MATLAB</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4314"/>
		<updated>2020-04-02T17:56:14Z</updated>

		<summary type="html">&lt;p&gt;Ravi: /* Running Parallel Jobs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Hoffman2|Back to all things Hoffman2]]&lt;br /&gt;
&lt;br /&gt;
MATLAB is not a small program and it can handle some fairly complex graphics.  As such, this is not something suitable to be used on a login node of Hoffman2.  But that&#039;s already been thought of by the great people at ATS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GUI==&lt;br /&gt;
To run a full GUI session of MATLAB, execute&lt;br /&gt;
 $ matlab&lt;br /&gt;
That&#039;s it, no flags, no frills, nothing else.  Hoffman2 will automatically check out an appropriate interactive node for you to run MATLAB on.  All you have to do is provide a time limit (in hours) when they ask you&lt;br /&gt;
 Enter a time limit for your session, in hours (default 2)&lt;br /&gt;
 &amp;lt;or quit&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line==&lt;br /&gt;
If you don&#039;t need the fancy GUI and just want the command line, execute&lt;br /&gt;
 $ matlab -nodesktop&lt;br /&gt;
and then supply a time limit when asked.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Since this uses interactive nodes, the maximum time limit you can request is 24 hours.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==License Check==&lt;br /&gt;
With so many people using Hoffman2 and MATLAB, sometimes licenses run out.  Using this helpful script will give you some insight as to the license situation.&lt;br /&gt;
&lt;br /&gt;
[[Hoffman2:Scripts:matlab_license_check.sh|matlab_license_check.sh]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Large Computations==&lt;br /&gt;
If you are doing a larger computation, &#039;&#039;&#039;running MATLAB normally will probably not work well.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the default method of launching MATLAB on Hoffman2 checks out an [[Hoffman2:Interactive_Sessions | interactive node]] with only 1GB of RAM.  This is woefully small if you are working with ten minutes of dense array EEG.  Use the following steps to launch a more capable MATLAB session.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ # Request an interactive node with time and memory required. In this case, 10 hours and 4GB RAM&lt;br /&gt;
 $ qrsh -l i,h_rt=10:00:00,h_data=4G&lt;br /&gt;
 $ # Load the module MATLAB&lt;br /&gt;
 $ # You can also load different versions of MATLAB:&lt;br /&gt;
 $ #   module load matlab/7.14&lt;br /&gt;
 $ #  or&lt;br /&gt;
 $ #   module load matlab/8.1&lt;br /&gt;
 $ # Try using &amp;quot;module help&amp;quot; for more information&lt;br /&gt;
 $ module load matlab&lt;br /&gt;
 $ # Launch MATLAB&lt;br /&gt;
 $ matlab&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Running Parallel Jobs==&lt;br /&gt;
IDRE team provided the following solution to use parallel pool in Matlab version 9.7&lt;br /&gt;
&lt;br /&gt;
 1) request an interactive session with for example: &lt;br /&gt;
 $qrsh -l h_data=4G -pe shared 1&lt;br /&gt;
 &lt;br /&gt;
 2) when the interactive session is awarded issue:&lt;br /&gt;
  $module load matlab/9.7&lt;br /&gt;
  $matlab &amp;amp;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 3) when the matlab desktop opens, issue at the matlab command prompt:&lt;br /&gt;
 rehash toolboxcache&lt;br /&gt;
 configCluster&lt;br /&gt;
 &lt;br /&gt;
 4) close matlab&lt;br /&gt;
 &lt;br /&gt;
 5) to familiarize with the submission procedure you could copy the content of the directory:&lt;br /&gt;
 &lt;br /&gt;
 /u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION&lt;br /&gt;
 &lt;br /&gt;
 in a local test directory and issue:&lt;br /&gt;
 &lt;br /&gt;
 ./matlab_batch_parallel_job_submit.sh -t 3 -s 20 -m 4 -v 9.7 -f myparpooltest_batch.m&lt;br /&gt;
 &lt;br /&gt;
 look into the file:&lt;br /&gt;
 &lt;br /&gt;
 /u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION/README.HOWTO&lt;br /&gt;
 &lt;br /&gt;
 and/or issues:&lt;br /&gt;
 &lt;br /&gt;
 ./matlab_batch_parallel_job_submit.sh --help&lt;br /&gt;
&lt;br /&gt;
==Software Versions==&lt;br /&gt;
&lt;br /&gt;
The current default version of MATLAB on Hoffman2 is R2015b, but more recent versions are also available for use:&lt;br /&gt;
&lt;br /&gt;
 R2016b  or  matlab/9.1&lt;br /&gt;
 R2019b  or  matlab/9.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[https://www.hoffman2.idre.ucla.edu/matlab_toolboxes/ MATLAB on Hoffman2]&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4313</id>
		<title>Hoffman2:MATLAB</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4313"/>
		<updated>2020-04-02T17:55:19Z</updated>

		<summary type="html">&lt;p&gt;Ravi: /* Running Parallel Jobs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Hoffman2|Back to all things Hoffman2]]&lt;br /&gt;
&lt;br /&gt;
MATLAB is not a small program and it can handle some fairly complex graphics.  As such, this is not something suitable to be used on a login node of Hoffman2.  But that&#039;s already been thought of by the great people at ATS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GUI==&lt;br /&gt;
To run a full GUI session of MATLAB, execute&lt;br /&gt;
 $ matlab&lt;br /&gt;
That&#039;s it, no flags, no frills, nothing else.  Hoffman2 will automatically check out an appropriate interactive node for you to run MATLAB on.  All you have to do is provide a time limit (in hours) when they ask you&lt;br /&gt;
 Enter a time limit for your session, in hours (default 2)&lt;br /&gt;
 &amp;lt;or quit&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line==&lt;br /&gt;
If you don&#039;t need the fancy GUI and just want the command line, execute&lt;br /&gt;
 $ matlab -nodesktop&lt;br /&gt;
and then supply a time limit when asked.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Since this uses interactive nodes, the maximum time limit you can request is 24 hours.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==License Check==&lt;br /&gt;
With so many people using Hoffman2 and MATLAB, sometimes licenses run out.  Using this helpful script will give you some insight as to the license situation.&lt;br /&gt;
&lt;br /&gt;
[[Hoffman2:Scripts:matlab_license_check.sh|matlab_license_check.sh]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Large Computations==&lt;br /&gt;
If you are doing a larger computation, &#039;&#039;&#039;running MATLAB normally will probably not work well.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the default method of launching MATLAB on Hoffman2 checks out an [[Hoffman2:Interactive_Sessions | interactive node]] with only 1GB of RAM.  This is woefully small if you are working with ten minutes of dense array EEG.  Use the following steps to launch a more capable MATLAB session.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ # Request an interactive node with time and memory required. In this case, 10 hours and 4GB RAM&lt;br /&gt;
 $ qrsh -l i,h_rt=10:00:00,h_data=4G&lt;br /&gt;
 $ # Load the module MATLAB&lt;br /&gt;
 $ # You can also load different versions of MATLAB:&lt;br /&gt;
 $ #   module load matlab/7.14&lt;br /&gt;
 $ #  or&lt;br /&gt;
 $ #   module load matlab/8.1&lt;br /&gt;
 $ # Try using &amp;quot;module help&amp;quot; for more information&lt;br /&gt;
 $ module load matlab&lt;br /&gt;
 $ # Launch MATLAB&lt;br /&gt;
 $ matlab&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Running Parallel Jobs==&lt;br /&gt;
IDRE team provided the following solution to use parallel pool in Matlab version 9.7&lt;br /&gt;
&lt;br /&gt;
 1) request an interactive session with for example: qrsh -l h_data=4G -pe shared 1&lt;br /&gt;
 &lt;br /&gt;
 2) when the interactive session is awarded issue:&lt;br /&gt;
  module load matlab/9.7&lt;br /&gt;
  matlab &amp;amp;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 3) when the matlab desktop opens, issue at the matlab command prompt:&lt;br /&gt;
 rehash toolboxcache&lt;br /&gt;
 configCluster&lt;br /&gt;
 &lt;br /&gt;
 4) close matlab&lt;br /&gt;
 &lt;br /&gt;
 5) to familiarize with the submission procedure you could copy the content of the directory:&lt;br /&gt;
 &lt;br /&gt;
 /u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION&lt;br /&gt;
 &lt;br /&gt;
 in a local test directory and issue:&lt;br /&gt;
 &lt;br /&gt;
 ./matlab_batch_parallel_job_submit.sh -t 3 -s 20 -m 4 -v 9.7 -f myparpooltest_batch.m&lt;br /&gt;
 &lt;br /&gt;
 look into the file:&lt;br /&gt;
 &lt;br /&gt;
 /u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION/README.HOWTO&lt;br /&gt;
 &lt;br /&gt;
 and/or issues:&lt;br /&gt;
 &lt;br /&gt;
 ./matlab_batch_parallel_job_submit.sh --help&lt;br /&gt;
&lt;br /&gt;
==Software Versions==&lt;br /&gt;
&lt;br /&gt;
The current default version of MATLAB on Hoffman2 is R2015b, but more recent versions are also available for use:&lt;br /&gt;
&lt;br /&gt;
 R2016b  or  matlab/9.1&lt;br /&gt;
 R2019b  or  matlab/9.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[https://www.hoffman2.idre.ucla.edu/matlab_toolboxes/ MATLAB on Hoffman2]&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4312</id>
		<title>Hoffman2:MATLAB</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4312"/>
		<updated>2020-04-02T17:54:11Z</updated>

		<summary type="html">&lt;p&gt;Ravi: /* Running Parallel Jobs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Hoffman2|Back to all things Hoffman2]]&lt;br /&gt;
&lt;br /&gt;
MATLAB is not a small program and it can handle some fairly complex graphics.  As such, this is not something suitable to be used on a login node of Hoffman2.  But that&#039;s already been thought of by the great people at ATS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GUI==&lt;br /&gt;
To run a full GUI session of MATLAB, execute&lt;br /&gt;
 $ matlab&lt;br /&gt;
That&#039;s it, no flags, no frills, nothing else.  Hoffman2 will automatically check out an appropriate interactive node for you to run MATLAB on.  All you have to do is provide a time limit (in hours) when they ask you&lt;br /&gt;
 Enter a time limit for your session, in hours (default 2)&lt;br /&gt;
 &amp;lt;or quit&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line==&lt;br /&gt;
If you don&#039;t need the fancy GUI and just want the command line, execute&lt;br /&gt;
 $ matlab -nodesktop&lt;br /&gt;
and then supply a time limit when asked.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Since this uses interactive nodes, the maximum time limit you can request is 24 hours.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==License Check==&lt;br /&gt;
With so many people using Hoffman2 and MATLAB, sometimes licenses run out.  Using this helpful script will give you some insight as to the license situation.&lt;br /&gt;
&lt;br /&gt;
[[Hoffman2:Scripts:matlab_license_check.sh|matlab_license_check.sh]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Large Computations==&lt;br /&gt;
If you are doing a larger computation, &#039;&#039;&#039;running MATLAB normally will probably not work well.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the default method of launching MATLAB on Hoffman2 checks out an [[Hoffman2:Interactive_Sessions | interactive node]] with only 1GB of RAM.  This is woefully small if you are working with ten minutes of dense array EEG.  Use the following steps to launch a more capable MATLAB session.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ # Request an interactive node with time and memory required. In this case, 10 hours and 4GB RAM&lt;br /&gt;
 $ qrsh -l i,h_rt=10:00:00,h_data=4G&lt;br /&gt;
 $ # Load the module MATLAB&lt;br /&gt;
 $ # You can also load different versions of MATLAB:&lt;br /&gt;
 $ #   module load matlab/7.14&lt;br /&gt;
 $ #  or&lt;br /&gt;
 $ #   module load matlab/8.1&lt;br /&gt;
 $ # Try using &amp;quot;module help&amp;quot; for more information&lt;br /&gt;
 $ module load matlab&lt;br /&gt;
 $ # Launch MATLAB&lt;br /&gt;
 $ matlab&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Running Parallel Jobs==&lt;br /&gt;
IDRE team provided the following solution to use parallel pool in Matlab version 9.7&lt;br /&gt;
&lt;br /&gt;
 1) request an interactive session with for example: qrsh -l h_data=4G -pe shared 1&lt;br /&gt;
 &lt;br /&gt;
 2) when the interactive session is awarded issue:&lt;br /&gt;
     module load matlab/9.7&lt;br /&gt;
     matlab &amp;amp;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
3) when the matlab desktop opens, issue at the matlab command prompt:&lt;br /&gt;
rehash toolboxcache&lt;br /&gt;
configCluster&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
4) close matlab&lt;br /&gt;
 &lt;br /&gt;
5) to familiarize with the submission procedure you could copy the content of the directory:&lt;br /&gt;
 &lt;br /&gt;
/u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION&lt;br /&gt;
 &lt;br /&gt;
in a local test directory and issue:&lt;br /&gt;
 &lt;br /&gt;
./matlab_batch_parallel_job_submit.sh -t 3 -s 20 -m 4 -v 9.7 -f myparpooltest_batch.m&lt;br /&gt;
 &lt;br /&gt;
look into the file:&lt;br /&gt;
 &lt;br /&gt;
/u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION/README.HOWTO&lt;br /&gt;
 &lt;br /&gt;
and/or issues:&lt;br /&gt;
 &lt;br /&gt;
./matlab_batch_parallel_job_submit.sh --help&lt;br /&gt;
&lt;br /&gt;
==Software Versions==&lt;br /&gt;
&lt;br /&gt;
The current default version of MATLAB on Hoffman2 is R2015b, but more recent versions are also available for use:&lt;br /&gt;
&lt;br /&gt;
 R2016b  or  matlab/9.1&lt;br /&gt;
 R2019b  or  matlab/9.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[https://www.hoffman2.idre.ucla.edu/matlab_toolboxes/ MATLAB on Hoffman2]&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4311</id>
		<title>Hoffman2:MATLAB</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:MATLAB&amp;diff=4311"/>
		<updated>2020-04-02T17:53:18Z</updated>

		<summary type="html">&lt;p&gt;Ravi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Hoffman2|Back to all things Hoffman2]]&lt;br /&gt;
&lt;br /&gt;
MATLAB is not a small program and it can handle some fairly complex graphics.  As such, this is not something suitable to be used on a login node of Hoffman2.  But that&#039;s already been thought of by the great people at ATS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GUI==&lt;br /&gt;
To run a full GUI session of MATLAB, execute&lt;br /&gt;
 $ matlab&lt;br /&gt;
That&#039;s it, no flags, no frills, nothing else.  Hoffman2 will automatically check out an appropriate interactive node for you to run MATLAB on.  All you have to do is provide a time limit (in hours) when they ask you&lt;br /&gt;
 Enter a time limit for your session, in hours (default 2)&lt;br /&gt;
 &amp;lt;or quit&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line==&lt;br /&gt;
If you don&#039;t need the fancy GUI and just want the command line, execute&lt;br /&gt;
 $ matlab -nodesktop&lt;br /&gt;
and then supply a time limit when asked.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Since this uses interactive nodes, the maximum time limit you can request is 24 hours.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==License Check==&lt;br /&gt;
With so many people using Hoffman2 and MATLAB, sometimes licenses run out.  Using this helpful script will give you some insight as to the license situation.&lt;br /&gt;
&lt;br /&gt;
[[Hoffman2:Scripts:matlab_license_check.sh|matlab_license_check.sh]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Large Computations==&lt;br /&gt;
If you are doing a larger computation, &#039;&#039;&#039;running MATLAB normally will probably not work well.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using the default method of launching MATLAB on Hoffman2 checks out an [[Hoffman2:Interactive_Sessions | interactive node]] with only 1GB of RAM.  This is woefully small if you are working with ten minutes of dense array EEG.  Use the following steps to launch a more capable MATLAB session.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ # Request an interactive node with time and memory required. In this case, 10 hours and 4GB RAM&lt;br /&gt;
 $ qrsh -l i,h_rt=10:00:00,h_data=4G&lt;br /&gt;
 $ # Load the module MATLAB&lt;br /&gt;
 $ # You can also load different versions of MATLAB:&lt;br /&gt;
 $ #   module load matlab/7.14&lt;br /&gt;
 $ #  or&lt;br /&gt;
 $ #   module load matlab/8.1&lt;br /&gt;
 $ # Try using &amp;quot;module help&amp;quot; for more information&lt;br /&gt;
 $ module load matlab&lt;br /&gt;
 $ # Launch MATLAB&lt;br /&gt;
 $ matlab&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Running Parallel Jobs==&lt;br /&gt;
IDRE team provided the following solution to use parallel pool in Matlab version 9.7&lt;br /&gt;
&lt;br /&gt;
 1) request an interactive session with for example:&lt;br /&gt;
 &lt;br /&gt;
qrsh -l h_data=4G -pe shared 1&lt;br /&gt;
 &lt;br /&gt;
2) when the interactive session is awarded issue:&lt;br /&gt;
module load matlab/9.7&lt;br /&gt;
matlab &amp;amp;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
3) when the matlab desktop opens, issue at the matlab command prompt:&lt;br /&gt;
rehash toolboxcache&lt;br /&gt;
configCluster&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
4) close matlab&lt;br /&gt;
 &lt;br /&gt;
5) to familiarize with the submission procedure you could copy the content of the directory:&lt;br /&gt;
 &lt;br /&gt;
/u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION&lt;br /&gt;
 &lt;br /&gt;
in a local test directory and issue:&lt;br /&gt;
 &lt;br /&gt;
./matlab_batch_parallel_job_submit.sh -t 3 -s 20 -m 4 -v 9.7 -f myparpooltest_batch.m&lt;br /&gt;
 &lt;br /&gt;
look into the file:&lt;br /&gt;
 &lt;br /&gt;
/u/local/apps/submit_scripts/MATLAB_PARALLEL_BATCH_SUBMISSION/README.HOWTO&lt;br /&gt;
 &lt;br /&gt;
and/or issues:&lt;br /&gt;
 &lt;br /&gt;
./matlab_batch_parallel_job_submit.sh --help&lt;br /&gt;
&lt;br /&gt;
==Software Versions==&lt;br /&gt;
&lt;br /&gt;
The current default version of MATLAB on Hoffman2 is R2015b, but more recent versions are also available for use:&lt;br /&gt;
&lt;br /&gt;
 R2016b  or  matlab/9.1&lt;br /&gt;
 R2019b  or  matlab/9.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[https://www.hoffman2.idre.ucla.edu/matlab_toolboxes/ MATLAB on Hoffman2]&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:JupyterNotebook&amp;diff=4302</id>
		<title>Hoffman2:JupyterNotebook</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:JupyterNotebook&amp;diff=4302"/>
		<updated>2020-04-02T17:28:35Z</updated>

		<summary type="html">&lt;p&gt;Ravi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Use Jupyter Notebook==&lt;br /&gt;
&lt;br /&gt;
===Method 1:===&lt;br /&gt;
Run on Hoffman2 &lt;br /&gt;
&lt;br /&gt;
Download h2jupynb from [https://gitlab.idre.ucla.edu/dauria/jupyter-notebook git ] to your local drive&lt;br /&gt;
&lt;br /&gt;
 chmod u+x h2jupynb&lt;br /&gt;
&lt;br /&gt;
From your laptop, run (Using Python 3.7)&lt;br /&gt;
&lt;br /&gt;
 ./h2jupynb -u userid -v 3.7.0&lt;br /&gt;
&lt;br /&gt;
(You&#039;ll find more details [https://www.hoffman2.idre.ucla.edu/access/jupyter-notebook/ here])&lt;br /&gt;
&lt;br /&gt;
===Method 2:===&lt;br /&gt;
Install to your laptop using Anaconda:&lt;br /&gt;
&lt;br /&gt;
[https://jupyter.readthedocs.io/en/latest/install.html Jupyter Official Website]&lt;br /&gt;
&lt;br /&gt;
1. Download [https://www.anaconda.com/distribution/ Anaconda] version 3.7&lt;br /&gt;
&lt;br /&gt;
2. Install it to your MacBook as a regular application&lt;br /&gt;
&lt;br /&gt;
3. then run &amp;quot;jupyter notebook&amp;quot; from the terminal&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Main_Page&amp;diff=3952</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Main_Page&amp;diff=3952"/>
		<updated>2019-09-25T22:08:19Z</updated>

		<summary type="html">&lt;p&gt;Ravi: Reverted edits by PhillippWeymouth (talk) to last revision by Hwang&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
== Center for Cognitive Neuroscience at UCLA ==&lt;br /&gt;
&lt;br /&gt;
Welcome to the Wiki of the Center for Cognitive Neuroscience at UCLA (CCN at UCLA).  Please find and contribute helpful information for lab usage here.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Classes ===&lt;br /&gt;
* [[Principles of Neuroimaging - 2015-2016]]&lt;br /&gt;
* [[Principles of Neuroimaging - 2016-2017]]&lt;br /&gt;
* [[Neuroimaging+ Journal Club]]&lt;br /&gt;
&lt;br /&gt;
=== Computing ===&lt;br /&gt;
* [[Hoffman2]]&lt;br /&gt;
* [[Dicom]]&lt;br /&gt;
&amp;lt;!-- * [[FUNC]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== EEG/fMRI ===&lt;br /&gt;
* [[EEG]] (includes EEG-fMRI)&lt;br /&gt;
* [[MR]]&lt;br /&gt;
* [[fNIRS]]&lt;br /&gt;
&lt;br /&gt;
=== Staglin Center ===&lt;br /&gt;
* [[Staglin EEG Suite]]&lt;br /&gt;
* [[Staglin MR Suite]]&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
</feed>