issparse - Determine whether input is sparse - MATLAB (original) (raw)
Main Content
Determine whether input is sparse
Description
TF = issparse(S)
returns logical 1 (true
) if the storage class of S
is sparse and logical 0 (false
) otherwise.
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
GPU Code Generation
Generate CUDA® code for NVIDIA® GPUs using GPU Coder™.
The issparse
function fully supports GPU arrays. To run the function on a GPU, specify the input data as a gpuArray (Parallel Computing Toolbox). For more information, see Run MATLAB Functions on a GPU (Parallel Computing Toolbox).
Version History
Introduced before R2006a