***************** Getting started ***************** ############## Installation ############## Unzip Tensorlab to any directory, browse to that location in MATLAB or Octave and run .. code-block:: tensorlab addpath(pwd); % Add the current directory to the MATLAB search path. savepath; % Save the search path for future sessions. ############## Requirements ############## Tensorlab requires MATLAB 7.9 (R2009b) or higher because of its dependency on the tilde operator ``~`` . If necessary, older versions of MATLAB can use Tensorlab by replacing the tilde in ``[~`` and ``~,`` with ``tmp``. To do so on Linux/OS X, browse to Tensorlab and run .. code:: bash sed -i "" 's/\[~/[tmp/g;s/~,/tmp,/g' *.m in your system’s terminal. However, most of the functionality in Tensorlab requires at the very minimum MATLAB 7.4 (R2007a) because of its extensive use of ``bsxfun``. Octave versions lower than 3.8 are only partially supported, mainly because it coerces nested functions into subfunctions. The latter do not share the workspace of their parent function, which is a feature used by Tensorlab in certain algorithms. As Octave v3.8 added support for nested subfunctions, Tensorlab is fully functional now. ############ Contents.m ############ If you have installed Tensorlab to the directory ``tensorlab``, run ``doc tensorlab`` from the command line for an overview of the toolboxes functionality (or, if that fails, try ``help(pwd)``). Both commands display the file ``Contents.m``, shown below. Although this user guide covers the most important aspects of Tensorlab, ``Contents.m`` shows a short one line description of all exported functions. .. literalinclude:: ../../Contents_tensorlab.m :language: tensorlab