Supplement 1. Matlab code for calculating short-term elasticities for California sea lions.
ShortElas.txt is a text file containing MATLAB code for calculating short-term (single year) elasticities as described in the main text and Appendix A. To run the program save the file as ShortElas.m in a MATLAB working directory. User can change the average matrix “aa”, length of iteration N and also specify his/her own variances to generate the Beta variables. The code also generates stochastic growth rates for different parameter combinations.