Difference between revisions of "SPSW 2012 summer school exercise session"

Line 39: Line 39:
 
=== For Linux (ubuntu) ===
 
=== For Linux (ubuntu) ===
 
# Type: “sudo apt-get install octave” (without quotes) in the command line.
 
# Type: “sudo apt-get install octave” (without quotes) in the command line.
 +
# Type: "octave" in a terminal
 +
# Type: "1+1" (without quotes) in the window and check if Octave knows the answer
 +
# Type: "sombrero(24)". If a nice sombrero figures appears, it means you have a working Octave installation.
 +
 +
== Octave basics ==
 +
Those not familiar with Octave are encouraged to get acquainted with it, for example by following this [http://en.wikibooks.org/wiki/Octave_Programming_Tutorial tutorial]
 +
 +
== Help ==
 +
If you have trouble with the installation, please write an email to [User:Micha] and he will help you.

Revision as of 16:50, 12 June 2012

This page is about the exercise session of the SPSW 2012 summer school on Modelling Development in Plant Sciences that will take place June 21st in Mürren

Summary

During the exercise session you will get introduced to Ordinary Differential Equations and how to solve them numerically using standard numerical software. We will then consider multicellular models and simulate pattern formation with Turing systems. For those already familiar with this, more advanced topics will be presented.

We will use Octave (or Matlab for those who have it) and Vlab for the practicals. In order to fully benefit form the exercise session, you should install this software on your laptop and bring it to the summer school.

Installing Octave

For Windows

  1. Download this file
  2. Uncompress it (called Octave3.6.1_gcc4.6.2_20120303.7z) to some directory (let's call it octave3.6.1)
  3. Open Windows explorer and type: “octave” (without quotes) in the search box.
  4. Find the file octave.exe (or just octave) and create a short-cut to it (right-click on it and “create shortcut”)
  5. Retype “octave shortcut” in the search box
  6. Find the file “Octave.exe – Shortcut” and move it to the desktop
  7. Double click on that shortcut. A window should appear and after a while some text should appear meaning that Octave is running in it.
  8. Type: "1+1" (without quotes) in the window and check if Octave knows the answer
  9. Type: "sombrero(24)". If a nice sombrero figures appears, it means you have a working Octave installation.

For MacOS

  1. Download this dmg file
  2. Open the dmg file
  3. Open the Extras folder and the gnuplot-4-4.3-acqua-i386.dmg file inside it
  4. Put Gnuplot into the application folder
  5. .Put Octave into the Applications folder.
  6. Launch the octave application. A terminal window should appear
  7. Type: "1+1" (without quotes) in the window and check if Octave knows the answer
  8. Type: "sombrero(24)". If a nice sombrero figures appears, it means you have a working Octave installation.

If you use Lion you may have the following error: dyld: Library not loaded: /usr/X11/lib/libfreetype.6.dylib Referenced from: /usr/X11/lib/libfontconfig.1.dylib Reason: Incompatible library version: libfontconfig.1.dylib requires version 14.0.0 or later, but libfreetype.6.dylib provides version 13.0.0

The solution is the following:

Open /Applications/Gnuplot.app/Contents/Resources/bin/gnuplot in a text editor. Use the editor search-and-replace feature to replace "DYLD_LIBRARY_PATH" with "DYLD_FALLBACK_LIBRARY_PATH". There are four instances that need to be replaced.

For Linux (ubuntu)

  1. Type: “sudo apt-get install octave” (without quotes) in the command line.
  2. Type: "octave" in a terminal
  3. Type: "1+1" (without quotes) in the window and check if Octave knows the answer
  4. Type: "sombrero(24)". If a nice sombrero figures appears, it means you have a working Octave installation.

Octave basics

Those not familiar with Octave are encouraged to get acquainted with it, for example by following this tutorial

Help

If you have trouble with the installation, please write an email to [User:Micha] and he will help you.