Skip to content

Installation

Rob Campbell edited this page Dec 20, 2016 · 13 revisions

This page describes the process of using Git to clone the StitchIt repository and then installing in MATLAB.

Cloning the repository

The first thing you need to do is get StitchIt's code onto you machine. On the project's main page is a green button near the top right of the screen that says "Clone or download". From here you can download a zip file containing StitchIt or, much better, clone StitchIt using Git. If you plan on seriously using StitchIt you should definitely clone it with Git. StitchIt receives regular updates and Git makes it easy to keep track of these and stay up to date. To clone and stay up to date with Git do the following:

  • Download and install free Git client such as http://www.syntevo.com/smartgit/ or GitKrakken.
  • Clone the repository using the URL you see when you press the green "Clone or download" button. SmartGit instructions GitKrakken instructions.
  • Once cloned, both of these tools have a "pull" button that checks for updates on GitHub and downloads them if available.
  • If all you're doing is cloning the repository and staying up to date with pull then that's all you need to do. If you would like to learn more about Git, possibly to contribute to StitchIt, then the Atlassian Git tutorial is a great starting point.

Installing in MATLAB

You should now have a directory somewhere on your computer that contains StitchIt. The easiest way of installing StitchIt in MATLAB is to add it to the MATLAB path using the pathtool command:

  • Start MATLAB
  • Run pathtool and a GUI will open.
  • Click "Add with subfolders"
  • Navigate to the StitchIt directory. Enter it and select the code directory then press "Open"
  • The code directory and all it's subdirectories are now added to the "MATLAB search path" list.
  • Hit "Save". This will update a file called pathdef.m that contains the list of directories you see in the GUI.

A common problem is that MATLAB complains you don't have write access to save the pathdef.m file.

Clone this wiki locally