************ * PURPOSE: * ************ This directory contains MATLAB files for constructing a stochastic matrix from prescribed spectrum by the continuation approach. ******************* * HOW TO OPERATE: * ******************* (1) If the user has a specific collection of eigenvalues, (s)he needs to store the information in a matrix saved as an ascii file or and .mat file named "J". The easiest way to do is to use the diagonal matrix of eigenvalues. However, the matrix should be real-valued. So if eigenvalues appear in complex-conjugate, the user should transform the diagonal matrix into a real-valued diagonal block. The routine cjf2rjf.m written by M. Steinbuch can do the job. (2) The codes call for the MATLAB ODE SUITE written by L. Shampine and M. Reichelt. The package can be obtained by ftp on ftp.mathworks.com in pub/mathworks/toolbox/matlab/funfun. The use should place the package in one of his(er) own directory, and make link to the MATLAB. (3) Once inside the MATLAB, the user only needs to execute the file "drive". The program is self-driven. ************** * SPECIFICS: * ************** J = source of a specified spectrum. Seed.mat = Records of cases that have been tested. Each row carries information of [n,iseed1,iseed2,iseed3,*] where * is a rough indicator of my satisfaction with the result. drive.m = The main routine. Self-explanatory when runs. flow.m = Defines the vector field. Called by "drive". eigsto.m = Routine used to generate a random spectrum from a random stochastic matrix. Always feasible. Can easily be overwritten for special M_j. post.m = Post-pocessing routine. Provide the history of progress by measuring the distance between the isospectral set and the cone of nonnegative matrices.