Pythagoras tree

This function generates Pythagoras tree and exports the plot to SVG file.


Updated 1 Mar 2010

View License

The Pythagoras Tree is a plane fractal constructed from squares. It is named after Pythagoras because each triple of touching squares encloses a right triangle, in a configuration traditionally used to depict the Pythagorean theorem.

Cite As

Guillaume JACQUENOT (2023). Pythagoras tree (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes