Matlab/Octave
Image path, size, and EXIF data
Description:
This script finds all images on your hard drive below a directory and generates a MATLAB structure with path, size, type, and EXIF information. It's useful for anyone who deals with images in MATLAB.
To use it, run the script with the directory name and output file as arguments:
find_images.py /Users/username/Pictures pictures.m
Then in MATLAB, you can load the pictures and view info about them:
Script File:
find_images.zip (15.81 KB)
Comment/Uncomment MATLAB code in TextWrangler
Description:
For some reason, "Un/Comment Selection" in the Text Menu does not work on MATLAB code in TextWrangler. Could be my system, but this script adds this capability as a UNIX filter.
It's very simple to use, just select one or more lines of code and click the script. It comments or uncomments the selection.
Author's Email:
kimo@mac.com
Script File:
comment.zip (1.46 KB)
Generate Matlab Header
Description:
This script runs in TextWrangler or BBEdit as a UNIX filter. You select the function declaration
function [out1, out2] = function_name( in1, in2 )
click the script, and it generates a pretty header and inserts it at the top of the file. After using the script, you can type (in MATLAB)
>> help function_name
and see your auto-generated documentation.
Author's Email:
kimo@mac.com
Script File:
matlab_header.zip (1.95 KB)
Leslie/Lefkovitch Matrix Modelling Metrics
Description:
Give this script a population matrix and an initial population vector. The script will then graph the population trajectory, both for each age/stage class and the population as a whole. It will also show the long term population growth rate the stable age distribution, the weighted reproductive value and the sensitivity and elasticity matrices and return the long term growth rate for future usage.
Script File:
matrixmodel.m (1.66 KB)



