Cody

# Problem 44386. Circumscribed Pentagon?

Solution 1576174

Submitted on 5 Jul 2018
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Fail
p = [0,5; 4.76,1.55; 2.94,-4.05; -2.94,-4.05; -4.76,1.55]; cp = [0,0]; r = 5; y_correct = 1; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

Name Size Bytes Class Attributes cp 1x2 16 double p 5x2 80 double pPoints 1x1 32 function_handle pentagonX 5x100 4000 double pentagonY 5x100 4000 double r 1x1 8 double verticesInBigCircle = logical 1 verticesInWeeCircle = logical 0 linesInBigCircle = 1×100 logical array Columns 1 through 44 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 45 through 88 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 89 through 100 1 1 1 1 1 1 1 1 1 1 1 1

Error using inpolygon (line 65) Polygon must be defined by vectors (XV, YV). Error in circumscribed_pentagon (line 27) bigCircleInPentagon = all( inpolygon(BigCircleX,BigCircleY, pentagonX,pentagonY) ) Error in Test1 (line 5) assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

2   Fail
p = [0,5.61; 5.40,1.69; 3.34,-4.66; -3.34,-4.66; -5.40,1.69]; cp = [0,0]; r = 5; y_correct = 2; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

Name Size Bytes Class Attributes cp 1x2 16 double p 5x2 80 double pPoints 1x1 32 function_handle pentagonX 5x100 4000 double pentagonY 5x100 4000 double r 1x1 8 double verticesInBigCircle = logical 0 verticesInWeeCircle = logical 0 linesInBigCircle = 1×100 logical array Columns 1 through 44 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 45 through 88 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 Columns 89 through 100 0 0 0 0 0 0 0 0 0 0 0 0

Error using inpolygon (line 65) Polygon must be defined by vectors (XV, YV). Error in circumscribed_pentagon (line 27) bigCircleInPentagon = all( inpolygon(BigCircleX,BigCircleY, pentagonX,pentagonY) ) Error in Test2 (line 5) assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

3   Fail
p = [0,6.18; 5.88,1.91; 3.63,-5.00; -3.63,-5.00; -5.88,1.91]; cp = [0,0]; r = 5; y_correct = 3; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

Name Size Bytes Class Attributes cp 1x2 16 double p 5x2 80 double pPoints 1x1 32 function_handle pentagonX 5x100 4000 double pentagonY 5x100 4000 double r 1x1 8 double verticesInBigCircle = logical 0 verticesInWeeCircle = logical 0 linesInBigCircle = 1×100 logical array Columns 1 through 44 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 45 through 88 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 89 through 100 0 0 0 0 0 0 0 0 0 0 0 0

Error using inpolygon (line 65) Polygon must be defined by vectors (XV, YV). Error in circumscribed_pentagon (line 27) bigCircleInPentagon = all( inpolygon(BigCircleX,BigCircleY, pentagonX,pentagonY) ) Error in Test3 (line 5) assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

4   Fail
p = [0,4.55; 4.28,1.44; 2.65,-3.59; -2.65,-3.59; -4.28,1.44]; cp = [0,0]; r = 5; y_correct = 0; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

Name Size Bytes Class Attributes cp 1x2 16 double p 5x2 80 double pPoints 1x1 32 function_handle pentagonX 5x100 4000 double pentagonY 5x100 4000 double r 1x1 8 double verticesInBigCircle = logical 1 verticesInWeeCircle = logical 1 linesInBigCircle = 1×100 logical array Columns 1 through 44 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 45 through 88 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 89 through 100 1 1 1 1 1 1 1 1 1 1 1 1

Error using inpolygon (line 65) Polygon must be defined by vectors (XV, YV). Error in circumscribed_pentagon (line 27) bigCircleInPentagon = all( inpolygon(BigCircleX,BigCircleY, pentagonX,pentagonY) ) Error in Test4 (line 5) assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

5   Fail
cp = [20,8]; p = [0,5; 4.76,1.55; 2.94,-4.05; -2.94,-4.05; -4.76,1.55] + repmat(cp,[5,1]); r = 5; y_correct = 1; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

Name Size Bytes Class Attributes cp 1x2 16 double p 5x2 80 double pPoints 1x1 32 function_handle pentagonX 5x100 4000 double pentagonY 5x100 4000 double r 1x1 8 double verticesInBigCircle = logical 1 verticesInWeeCircle = logical 0 linesInBigCircle = 1×100 logical array Columns 1 through 44 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 45 through 88 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 89 through 100 1 1 1 1 1 1 1 1 1 1 1 1

Error using inpolygon (line 65) Polygon must be defined by vectors (XV, YV). Error in circumscribed_pentagon (line 27) bigCircleInPentagon = all( inpolygon(BigCircleX,BigCircleY, pentagonX,pentagonY) ) Error in Test5 (line 5) assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

6   Fail
p = [20,13.61; 25.40,9.69; 23.34,3.34; 16.66,3.34; 14.60,9.69]; cp = [20,8]; r = 5; y_correct = 2; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

Name Size Bytes Class Attributes cp 1x2 16 double p 5x2 80 double pPoints 1x1 32 function_handle pentagonX 5x100 4000 double pentagonY 5x100 4000 double r 1x1 8 double verticesInBigCircle = logical 0 verticesInWeeCircle = logical 0 linesInBigCircle = 1×100 logical array Columns 1 through 44 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 45 through 88 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 Columns 89 through 100 0 0 0 0 0 0 0 0 0 0 0 0

Error using inpolygon (line 65) Polygon must be defined by vectors (XV, YV). Error in circumscribed_pentagon (line 27) bigCircleInPentagon = all( inpolygon(BigCircleX,BigCircleY, pentagonX,pentagonY) ) Error in Test6 (line 5) assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

7   Fail
p = [20,14.18; 25.88,9.91; 23.63,3.00; 16.37,3.00; 14.12,9.91]; cp = [20,8]; r = 5; y_correct = 3; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

Name Size Bytes Class Attributes cp 1x2 16 double p 5x2 80 double pPoints 1x1 32 function_handle pentagonX 5x100 4000 double pentagonY 5x100 4000 double r 1x1 8 double verticesInBigCircle = logical 0 verticesInWeeCircle = logical 0 linesInBigCircle = 1×100 logical array Columns 1 through 44 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 45 through 88 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 89 through 100 0 0 0 0 0 0 0 0 0 0 0 0

Error using inpolygon (line 65) Polygon must be defined by vectors (XV, YV). Error in circumscribed_pentagon (line 27) bigCircleInPentagon = all( inpolygon(BigCircleX,BigCircleY, pentagonX,pentagonY) ) Error in Test7 (line 5) assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

8   Fail
cp = [20,8]; p = [0,6.58; 6.42,1.92; 3.97,-5.63; -3.97,-5.63; -6.42,1.92] + repmat(cp,[5,1]); r = 5; y_correct = 4; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

Name Size Bytes Class Attributes cp 1x2 16 double p 5x2 80 double pPoints 1x1 32 function_handle pentagonX 5x100 4000 double pentagonY 5x100 4000 double r 1x1 8 double verticesInBigCircle = logical 0 verticesInWeeCircle = logical 0 linesInBigCircle = 1×100 logical array Columns 1 through 44 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 45 through 88 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 89 through 100 0 0 0 0 0 0 0 0 0 0 0 0

Error using inpolygon (line 65) Polygon must be defined by vectors (XV, YV). Error in circumscribed_pentagon (line 27) bigCircleInPentagon = all( inpolygon(BigCircleX,BigCircleY, pentagonX,pentagonY) ) Error in Test8 (line 5) assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

9   Fail
cp = [20,8]; p = [0,4.55; 4.28,1.44; 2.65,-3.59; -2.65,-3.59; -4.28,1.44] + repmat(cp,[5,1]); r = 5; y_correct = 0; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

Name Size Bytes Class Attributes cp 1x2 16 double p 5x2 80 double pPoints 1x1 32 function_handle pentagonX 5x100 4000 double pentagonY 5x100 4000 double r 1x1 8 double verticesInBigCircle = logical 1 verticesInWeeCircle = logical 1 linesInBigCircle = 1×100 logical array Columns 1 through 44 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 45 through 88 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 89 through 100 1 1 1 1 1 1 1 1 1 1 1 1

Error using inpolygon (line 65) Polygon must be defined by vectors (XV, YV). Error in circumscribed_pentagon (line 27) bigCircleInPentagon = all( inpolygon(BigCircleX,BigCircleY, pentagonX,pentagonY) ) Error in Test9 (line 5) assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

10   Fail
p = [23.66,11.42; 24.37,5.58; 19.05,3.10; 15.04,7.40; 17.89,12.54]; cp = [20,8]; r = 5; y_correct = 1; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

Name Size Bytes Class Attributes cp 1x2 16 double p 5x2 80 double pPoints 1x1 32 function_handle pentagonX 5x100 4000 double pentagonY 5x100 4000 double r 1x1 8 double verticesInBigCircle = logical 1 verticesInWeeCircle = logical 0 linesInBigCircle = 1×100 logical array Columns 1 through 44 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 45 through 88 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 89 through 100 1 1 1 1 1 1 1 1 1 1 1 1

Error using inpolygon (line 65) Polygon must be defined by vectors (XV, YV). Error in circumscribed_pentagon (line 27) bigCircleInPentagon = all( inpolygon(BigCircleX,BigCircleY, pentagonX,pentagonY) ) Error in Test10 (line 5) assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

11   Fail
p = [25.01,12.47; 25.98,4.58; 18.78,1.23; 13.37,7.03; 17.22,13.97]; cp = [20,8]; r = 5; y_correct = 4; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

Name Size Bytes Class Attributes cp 1x2 16 double p 5x2 80 double pPoints 1x1 32 function_handle pentagonX 5x100 4000 double pentagonY 5x100 4000 double r 1x1 8 double verticesInBigCircle = logical 0 verticesInWeeCircle = logical 0 linesInBigCircle = 1×100 logical array Columns 1 through 44 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 45 through 88 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 89 through 100 0 0 0 0 0 0 0 0 0 0 0 0

Error using inpolygon (line 65) Polygon must be defined by vectors (XV, YV). Error in circumscribed_pentagon (line 27) bigCircleInPentagon = all( inpolygon(BigCircleX,BigCircleY, pentagonX,pentagonY) ) Error in Test11 (line 5) assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

12   Fail
p = [23.27,11.12; 23.92,5.87; 19.12,3.63; 15.52,7.50; 18.08,12.13]; cp = [20,8]; r = 5; y_correct = 0; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

Name Size Bytes Class Attributes cp 1x2 16 double p 5x2 80 double pPoints 1x1 32 function_handle pentagonX 5x100 4000 double pentagonY 5x100 4000 double r 1x1 8 double verticesInBigCircle = logical 1 verticesInWeeCircle = logical 1 linesInBigCircle = 1×100 logical array Columns 1 through 44 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 45 through 88 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 89 through 100 1 1 1 1 1 1 1 1 1 1 1 1

Error using inpolygon (line 65) Polygon must be defined by vectors (XV, YV). Error in circumscribed_pentagon (line 27) bigCircleInPentagon = all( inpolygon(BigCircleX,BigCircleY, pentagonX,pentagonY) ) Error in Test12 (line 5) assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

13   Fail
p = [30.94,36.26; 35.61,27.09; 28.34,19.82; 19.17,24.49; 20.78,34.65]; cp = [26.97,28.45]; r = 8.75; y_correct = 1; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

Name Size Bytes Class Attributes cp 1x2 16 double p 5x2 80 double pPoints 1x1 32 function_handle pentagonX 5x100 4000 double pentagonY 5x100 4000 double r 1x1 8 double verticesInBigCircle = logical 1 verticesInWeeCircle = logical 0 linesInBigCircle = 1×100 logical array Columns 1 through 44 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 45 through 88 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 89 through 100 1 1 1 1 1 1 1 1 1 1 1 1

Error using inpolygon (line 65) Polygon must be defined by vectors (XV, YV). Error in circumscribed_pentagon (line 27) bigCircleInPentagon = all( inpolygon(BigCircleX,BigCircleY, pentagonX,pentagonY) ) Error in Test13 (line 5) assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

14   Fail
p = [32.54,38.78; 38.84,26.41; 29.02,16.59; 16.65,22.89; 18.83,36.61]; cp = [26.97,28.45]; r = 8.75; y_correct = 4; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

Name Size Bytes Class Attributes cp 1x2 16 double p 5x2 80 double pPoints 1x1 32 function_handle pentagonX 5x100 4000 double pentagonY 5x100 4000 double r 1x1 8 double verticesInBigCircle = logical 0 verticesInWeeCircle = logical 0 linesInBigCircle = 1×100 logical array Columns 1 through 44 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 45 through 88 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 89 through 100 0 0 0 0 0 0 0 0 0 0 0 0

Error using inpolygon (line 65) Polygon must be defined by vectors (XV, YV). Error in circumscribed_pentagon (line 27) bigCircleInPentagon = all( inpolygon(BigCircleX,BigCircleY, pentagonX,pentagonY) ) Error in Test14 (line 5) assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

15   Fail
p = [30.49,35.54; 34.69,27.29; 28.14,20.74; 19.89,24.95; 21.34,34.09]; cp = [26.97,28.45]; r = 8.75; y_correct = 0; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

Name Size Bytes Class Attributes cp 1x2 16 double p 5x2 80 double pPoints 1x1 32 function_handle pentagonX 5x100 4000 double pentagonY 5x100 4000 double r 1x1 8 double verticesInBigCircle = logical 1 verticesInWeeCircle = logical 1 linesInBigCircle = 1×100 logical array Columns 1 through 44 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 45 through 88 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 89 through 100 1 1 1 1 1 1 1 1 1 1 1 1

Error using inpolygon (line 65) Polygon must be defined by vectors (XV, YV). Error in circumscribed_pentagon (line 27) bigCircleInPentagon = all( inpolygon(BigCircleX,BigCircleY, pentagonX,pentagonY) ) Error in Test15 (line 5) assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

16   Fail
p = [26.97,34.06; 32.37,30.14; 30.31,23.79; 23.63,23.79; 21.57,30.14]; cp = [26.97,28.45]; r = 5; y_correct = 2; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

Name Size Bytes Class Attributes cp 1x2 16 double p 5x2 80 double pPoints 1x1 32 function_handle pentagonX 5x100 4000 double pentagonY 5x100 4000 double r 1x1 8 double verticesInBigCircle = logical 0 verticesInWeeCircle = logical 0 linesInBigCircle = 1×100 logical array Columns 1 through 44 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 45 through 88 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 Columns 89 through 100 0 0 0 0 0 0 0 0 0 0 0 0

Error using inpolygon (line 65) Polygon must be defined by vectors (XV, YV). Error in circumscribed_pentagon (line 27) bigCircleInPentagon = all( inpolygon(BigCircleX,BigCircleY, pentagonX,pentagonY) ) Error in Test16 (line 5) assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

17   Fail
p = [31.35,32.83; 32.49,25.64; 26.00,22.34; 20.85,27.48; 24.16,33.97]; cp = [26.97,28.45]; r = 5.01; y_correct = 3; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

Name Size Bytes Class Attributes cp 1x2 16 double p 5x2 80 double pPoints 1x1 32 function_handle pentagonX 5x100 4000 double pentagonY 5x100 4000 double r 1x1 8 double verticesInBigCircle = logical 0 verticesInWeeCircle = logical 0 linesInBigCircle = 1×100 logical array Columns 1 through 44 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 45 through 88 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 89 through 100 0 0 0 0 0 0 0 0 0 0 0 0

Error using inpolygon (line 65) Polygon must be defined by vectors (XV, YV). Error in circumscribed_pentagon (line 27) bigCircleInPentagon = all( inpolygon(BigCircleX,BigCircleY, pentagonX,pentagonY) ) Error in Test17 (line 5) assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!