You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
RST.m: Recursion for Sierpinski Triangle
Description: This function draws Sierpinski triangle by using recursion
Input: 3 coordinates A, B, C (2-D vector) and number of recursion 'n'
Example: A(2,4), B(0,0), C(4,0), n = 5 --> RST(A, B, C, n)
Output: Graph of Sierpinski Triangle
Complexity: O(3^n)
---------------------------------------------
main.m: Example for using RST.m
Cite As
Trong Hoang Vo (2026). Recursion for Sierpinski Triangle (https://www.mathworks.com/matlabcentral/fileexchange/56551-recursion-for-sierpinski-triangle), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0 (1.46 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0 |
|
