%------------------------------------------------------------- % % Script that reads in precomputed eigenvalues of two % matrices and displays them using eigenvalue_plot(). % Demonstrates using global variables (e.g., GLOBAL_bloviation % does not need to be passed as an argument to the % function eigenvalue_plot(), but can be used there). % %--------------------------------- % % Randall Bramley % Department of Computer Science % Indiana University, Bloomington % bramley somewhere around cs dot indiana dot (allegedly) edu % % Initiated : Mon 09 Mar 2009, 9:09 AM % Last Modified: Mon 09 Mar 2009, 11:13 AM %--------------------------------- % %------------------------------------------------------------- %----------------------------------------------------- % How much chatter eigenvalue_plot should blither out. % This is like "#define" in C. %----------------------------------------------------- global GLOBAL_bloviation; GLOBAL_bloviation = logical(1); %---------------------------------------------------- % Whether or not to put legends on the plots. Keep it % set to 1. %---------------------------------------------------- global GLOBAL_showlegends; GLOBAL_showlegends = logical(1); load 'B_eigenvalues' B = A; load 'A_eigenvalues' [Amin, Amax, Bmin, Bmax] = eigenvalue_plot(A, B);