www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/PseudocolorPlotOfHadamardMatrixExample.m

    %% Pseudocolor Plot of Hadamard Matrix
% A Hadamard matrix has elements that are |+1| and |-1|. A colormap with
% only two entries is appropriate when displaying a pseudocolor plot of
% this matrix. 

% Copyright 2015 The MathWorks, Inc.


pcolor(hadamard(20))
colormap(gray(2))
axis ij
axis square