| Home | Vita | Course | Toolbox | Contact |
The "Tree-Ring Toolbox" is not a commercially available Matlab toolbox, but is simply a collection of Matlab functions I have written to do various tasks in tree-ring analysis. For example, the function crn2vec2 reads an ITRDB-formatted ".crn" file and returns the site chronology, years, and sample size as matlab vectors.
Back to Top of Page
To use the Tree-Ring Toolbox, you must its functions in a directory on your Matlab path. My functions usually call on other utility functions I wrote. The best method to be sure you don't call an "unknown" function is to download the whole set of Tree-Ring Toolbox functions. I have zipped these into a file trunk.zip, which you should unzip into a directory on your Matlab path. I recommend keeping those functions by themselves (not with any of your own user-written functions, not with your data files) in a dedicated directory. I keep mine in a directory c:\mlb\treetool\. I distribute these function freely. Go ahead and modify them as you wish. I welcome any comments on the functions in the function list. But due to time constraints, I cannot promise anything more than cheerful cooperation in updating or correcting functions when I'm in the mood.
To find out what's in the Tree-Ring Matlab Toolbox, check out the list of functions Click on a function in the list and you will see the opening comment section of the function. The comment section is organized as follows:
(1 x 1)r real number, scalar (3 x 2)r matrix (3 x 2) of real numbers (3 x 1)i column vector (3 elements) of integers (1 x 8)s character string of length 8 (1 x 1)L logical scalarMatlab also has data types called "cells" and "structures", which are best found out about by reading the Matlab documentation. My code for cells uses braces. For example, the code below indicates a 1 x 3 "cell" variable containing a 2x2 integer matrix, a 1x5 character string and a 1x10 row vector of real numbers.
{1 x 3}
(2 x 2)i
(1 x 5)s
(1 x 10)r
To keep my Web pages reasonably small, I only include the first part of the opening comments section for each function. For the more deserving functions, after downloading them, you will find a more extensive "NOTES" section at the end of the opening comments. It's usually a good idea to read through the entire opening comments section, including the "NOTES", before trying out a function. | Home | Vita | Course | Toolbox | Contact |