Another paper has been added to the collection of reproducible papers:

The paper demonstrates the use of Matlab figures in a reproducible document. To include figures generated with Matlab:

  1. Create a directory called Matlab.
  2. Put figure-generating matlab scripts in this directory.
  3. Each script should have a .ml suffix
  4. Each script should end with a command like print -depsc junkml.eps; (the name junkml.eps is important.)
  5. You can put other needed Matlab functions in the same directory. See book/sep/specfac/Matlab/ directory for an example.

The rules for Mathematica figures are completely analogous.

  1. Create a directory called Math.
  2. Put figure-generating mathematica scripts in this directory.
  3. Each script should have a .ma suffix
  4. Each script should end with a command like Export[“junkma.eps”, %, “EPS”]; (the name junkma.eps is important.)
  5. See book/sep/angle/Math/ directory for examples.