Alternate Carpets

Beginning with the unit square each iteration of the Alternate Carpet contractions yeilds a region in the plane thus the carpet1216, carpet1316, and carpet1516 functions require only the level and the number of refinements:

[p,t,v,l]=carpet1216(Level,# of Refinements);
[p,t,v,l]=carpet1316(Level,# of Refinements);
[p,t,v,l]=carpet1516(Level,# of Refinements);



Home