%% Rectangular Sparse Identity Matrix
% Create a 400-by-800 sparse identity matrix and view the pattern of nonzeros.

S = speye(400,800);
spy(S)

% This command is equivalent to speye([400 800]).
% Copyright 2019 The MathWorks, Inc.