Installation#
What you need#
recent version of Matlab (the code is tested mostly on the latest versions R2015b-R2019a)
no extra Matlab toolbox is necessary for numerical calculations
for the optional symbolic calculations the Symbolic Math Toolbox is necessary
How to install SpinW#
unzip the downloaded SpinW files into a folder, e.g.
spinw, there will be a subdirectory likespinw_2-0beta_rev195, where 2-0 is the version and rev195 is the revision numberadd all the subdirectories of
spinw/spinw_2-0beta_rev195to the Matlab pathto make the path permanent put the following command into the
startup.mfile (by usingedit startupcommand):addpath(genpath([YOUR_PATH '/spinw/spinw_2-0beta_rev195']))whereYOUR_PATHis the path of the SpinW folder
Updating#
since SpinW is under active development, the files are often updated (new features, bug fixes)
to update your installation, execute the
sw_update()function in the Matlab Command Line, this will check for the latest available version and downloads it into a new subfolder under/spinw/and adds the new files to the Matlab search pathto make the new path permanent, edit the
startup.mfile as written aboveexecute the
clear classescommand in the Command Line to clear the Matlab cache of user defined classes