Difference between revisions of "MATLAB subdirectory help"

From FBSwiki
Jump to: navigation, search
(Created page with "Some of the MATLAB examples make use of subdirectories that contain multiple files used by that model. To execute these examples, you should do the following: * On your local...")
 
 
Line 2: Line 2:
 
* On your local machine, create a directory (folder) with the given name (without the final slash).  This directory must be in a location that can be found by MATLAB.
 
* On your local machine, create a directory (folder) with the given name (without the final slash).  This directory must be in a location that can be found by MATLAB.
 
* Click on the web page link to see a list of files; copy each of the files into the directory on your local machine
 
* Click on the web page link to see a list of files; copy each of the files into the directory on your local machine
* Install {{matlabfile|.|amrun.m}} in your MATLAB path.  This function is used to add the model subdirectory to your MATLAB path.
+
* Install {{matlabfile|.|amuse.m}} in your MATLAB path.  This function is used to add the model subdirectory to your MATLAB path.
 
* Run the script that includes the model (it will call "AMuse('model') to include the model)
 
* Run the script that includes the model (it will call "AMuse('model') to include the model)

Latest revision as of 00:17, 28 October 2012

Some of the MATLAB examples make use of subdirectories that contain multiple files used by that model. To execute these examples, you should do the following:

  • On your local machine, create a directory (folder) with the given name (without the final slash). This directory must be in a location that can be found by MATLAB.
  • Click on the web page link to see a list of files; copy each of the files into the directory on your local machine
  • Install amuse.m in your MATLAB path. This function is used to add the model subdirectory to your MATLAB path.
  • Run the script that includes the model (it will call "AMuse('model') to include the model)