function [ lo, hi ] = p01_box ( m ) %% P01_BOX returns a bounding box for problem 01. % % Modified: % % 10 February 2006 % % Author: % % John Burkardt % % Reference: % % Per-Olof Persson and Gilbert Strang, % A Simple Mesh Generator in MATLAB, % SIAM Review, % Volume 46, Number 2, June 2004, pages 329-345. % % Parameters: % % Input, integer M, the spatial dimension. % % Output, real LO(M), HI(M), the low and high corners of the box. % center = [ 0.0, 0.0 ]; r1 = 1.0; lo(1:m) = [ center(1) - r1, center(2) - r1 ]; hi(1:m) = [ center(1) + r1, center(2) + r1 ];