You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
dragon(N) plots the dragon curve produced from folding a strip of paper halfway N times, assuming that it can be done endlessly. The resulting plot is the folded paper: one end is at (0,0), followed by 2^N line segments at right angles with each other.
The hsv colormap is used to color the line segments from end to end.
For more information, follow the Youtube link in the script.
Cite As
Karl Ezra Pilario (2026). Dragon Curve from Paper Folding (https://www.mathworks.com/matlabcentral/fileexchange/70351-dragon-curve-from-paper-folding), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.2 (1.86 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux