Aperiodic array generation
Aperiodic 1D and 2D binary arrays from Thue-Morse, Fibonacci, Baum-Sweet, Paper-Folding (Dragon curve), and Rudin-Shapiro algorithms are generated based on user input.
Thue-Morse: g(A)=AB, g(B)=BA
Fibonacci: g(A)=AB, g(B)=A
Paper-Folding: g(AB)=AABA, g(BA)=ABBA, g(AB)=AABB, g(BB)=ABBB
Baum-Sweet: g(BB)=BBBB, g(BA)=ABBA, g(AB)=BABB, g(AA)=AABA
Rudin-Shapiro: g(A)=AC, g(B)=DC, g(C)=AB, g(D)=DB
See Macia, "The role of aperiodic order in science and technology" Rep. Prog. Phys. v69 (2006).
Cite As
ben payne (2024). Aperiodic array generation (https://www.mathworks.com/matlabcentral/fileexchange/28474-aperiodic-array-generation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Elementary Math >
Tags
Communities
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.