Aperiodic array generation

Functions to create aperiodic 1D, 2D arrays from Thue-Morse, Fibonacci, Rudin-Shapiro algorithms

You are now following this Submission

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 (2026). Aperiodic array generation (https://www.mathworks.com/matlabcentral/fileexchange/28474-aperiodic-array-generation), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Elementary Math in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Communities
Version Published Release Notes Action
1.3.0.0

new sequences added
functional form used with sanity checking on inputs

1.1.0.0

Improved error handling for inputs, correction to output file name.

1.0.0.0