• Remix
  • Share
  • New Entry

on 7 Oct 2021
  • 51
  • 56
  • 4
  • 0
  • 269
% The Walsh spectrum of sloped stripes
% An experiment from my degree thesis
% By Victoria A. Sablina
N = 256;
r = 64;
z = 1:N^2;
x = zeros(N) - r + 128;
L = logical(mod(ceil(z/3),2));
x(L) = x(L) + 2*r;
M=h(N);
X = (x*M)'*M/N^2;
f = log(abs(X) + 1);
image(f/max(f(:))*255);
axis off;
title('MATLAB Central 20^{th} anniversary!!!');
function m=h(n)
m=[1 1;1 -1];
for i=1:log2(n)-1
m=[m m;m -m];
end
end
Remix Tree
Load full remix tree