%% Specify Reciprocal Condition Number
% Create a random 50-by-100 sparse matrix with approximately 0.2*50*100 = 1000 normally distributed nonzero entries. Specify the reciprocal condition number of the matrix to be 0.25.

R = sprandn(50,100,0.2,0.25);

% Show that the condition number of the matrix R is equal to 1/0.25 = 4.

cond(full(R))

%
% Copyright 2020 The MathWorks, Inc.