Home > K25104 > ODEs > boundary_locus_script_1.m

boundary_locus_script_1

PURPOSE ^

Usage example for boundary_locus

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Usage example for boundary_locus
 related to Exercise 6.8

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % Usage example for boundary_locus
0002 % related to Exercise 6.8
0003 
0004 rho = [1; 0; -1];
0005 sigma = [0; 2; 0];
0006 n = 100;
0007 [ z ] = boundary_locus( rho,sigma,n );
0008 % plot z on the complex plane
0009 f=figure;
0010 x=real(z);
0011 y=imag(z);
0012 plot(x,y);
0013 title('Explicit midpoint rule');
0014 axis([-1.5 1.5 -1.5 1.5]);
0015 xlabel('Re');
0016 ylabel('Im');
0017 grid on;

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