function R = spones(S)
%MATLAB Code Generation Library Function

%   Copyright 2017 The MathWorks, Inc.
%#codegen
coder.internal.assert(ismatrix(S), ...
                      'MATLAB:spones:ndInput');
R = spones(sparse(S));
