Phil Hoole's matlab function libraries

(last update 20.11.2012)
In order to use any of my matlab applications it is necessary to install an extensive collection of matlab functions.
These are available for download at the subversions server of IPS Munich.
While it is in theory possible to download them by hand it is strongly recommended to use the subversions control program svn to handle download and subsequent update automatically.
Thus the first task is to find out if svn is available on your system.
For Linux/Unix systems this will normally be the case. For Windows it will often be necessary to download and install it. See additional instructions below.

Assuming svn is available, the following steps need to be carried out:
(1)
Decide where you want to instal the m-files. Probably best to make two new empty subdirectories like this (adapt for Linux etc.):
md d:\matlabnew\phil
md d:\matlabnew\tapadm

(2)
Run the following console commands to perform the 'initial checkout' (after adjusting the names of the subdirectories if you are not using d:\matlabnew).
This can also be done from matlab's command window (in which case insert a '!' at the beginning).
(Windows: Use the 'run' command, or open a 'DOS' command window)
This step only needs doing once.
svn checkout https://svn.phonetik.uni-muenchen.de/svn/repos/Phil/trunk D:\matlabnew\phil --username philmguest --password ipsmuc
svn checkout https://svn.phonetik.uni-muenchen.de/svn/repos/TAPADM/branches/Phil D:\matlabnew\tapadm --username philmguest --password ipsmuc

(3)
Make sure the following commands are included in your matlab startup.m file (again, replace d:\matlabnew if necessary):
addpath d:\matlabnew\phil\3dnew
addpath d:\matlabnew\phil\m\mt
addpath d:\matlabnew\phil\m
addpath d:\matlabnew\tapadm

(4)
It is recommended to also include the following commands in your matlab startup.m
svn will then check for updates every time you start matlab.
If this proves too cumbersome (e.g slow network connection) then put them in a separate m-file and run them once every day or so.
%Discard local changes:
!svn revert d:\matlabnew\phil -R
!svn revert d:\matlabnew\tapadm -R
%Daily Update:
!svn update d:\matlabnew\phil --username philmguest --password ipsmuc
!svn update d:\matlabnew\tapadm --username philmguest --password ipsmuc

Additional instructions for downloading and installing svn on Windows systems

  • download site for the most current commandline versions
    The Tortoise svn package provides a convenient interactive interface to the subversions system:
  • Tortoise svn
    Older versions available for download from IPS (no guarantee they will work with newer Windows systems):
  • svn 1.4.0 zip file (simply copy the directory in the zip file to an appropriate location)
  • svn 1.4.6 setup file
  • PDF document about svn (also not guaranteed to be up to date)

    After installing svn it is preferable to insert the path to the program into Windows' 'path' environment variable (otherwise all the svn commands given above for checkout and update will have to use the complete path) (Administrator privileges are needed to change the environment variables):
    control panel > system > advanced > environment variables
    In the system variables choose 'path' and then edit.
    Add something like the following to the existing setting of the path variable (details depend on where you have installed svn and which version you have downloaded):
    ;c:\program files\svn-win32-1.4.0\bin
    (note the use of the semicolon to separate entries in the path variable) Be careful not to change any existing settings!