Home > K25104 > ODEs > boundary_locus_script_2.m

boundary_locus_script_2

PURPOSE ^

Usage example for boundary_locus

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Usage example for boundary_locus
 related to the Theta methods

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Mon 18-Jan-2016 10:25:49 by m2html © 2005