Usage example for boundary_locus related to the Theta methods
0001 % Usage example for boundary_locus 0002 % related to the Theta methods 0003 0004 n=100; 0005 annotation('textbox', [0 0.9 1 0.1], ... 0006 'String', 'Theta methods', ... 0007 'EdgeColor', 'none', ... 0008 'HorizontalAlignment', 'center', ... 0009 'FontWeight', 'bold', ... 0010 'FontSize',12) 0011 for k=1:10 0012 subplot(5,2,k); 0013 theta = 1 - (k-1)/10; 0014 rho = [1; -1]; 0015 sigma = [1 - theta; theta]; 0016 [ z ] = boundary_locus( rho,sigma,n ); 0017 plot(z); 0018 title(['theta = ', num2str(theta)]); 0019 axis([-3 3 -3 3]); 0020 grid on; 0021 end