function circle_imp_print_2d ( r, center, title ) %% CIRCLE_IMP_PRINT_2D prints an implicit circle in 2D. % % Discussion: % % An implicit circle in 2D satisfies: % % ( X - CENTER(1) )**2 + ( Y - CENTER(2) )**2 = R**2 % % Modified: % % 07 May 2005 % % Author: % % John Burkardt % % Parameters: % % Input, real R, the radius of the circle. % % Input, real CENTER(2), the center of the circle. % % Input, character TITLE(*), an optional title. % dim_num = 2; if ( 0 < s_len_trim ( title ) ) fprintf ( 1, '\n' ); fprintf ( 1, '%s\n', title ); end fprintf ( 1, '\n' ); fprintf ( 1, ' Radius = %f\n', r ); fprintf ( 1, ' Center = %f %f\n', center(1:2) );