This script generates hadamard matrix which can be used to calculate Hadamard Transform as
H = generate_hadamard(256);
I = phantom(256);
Hr_1d = H*I; %% 1D hadamard transform
Hr_2d = H*I*H'; %% 2D hadamard transform
Kamlesh Pawar (2021). Hadamard matrix generation (https://www.mathworks.com/matlabcentral/fileexchange/34252-hadamard-matrix-generation), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.