determine whether input is sparse
res = issparse(S)
a scilab object
1 is the matrix is a sparse and 0 otherwise/
res = issparse(S) returns 1 if S is a sparse matrix and 0 otherwise.
sp = sparse([1,2;4,5;3,10],[1,2,3]); if issparse(sp) == 1 then disp("It is a sparse"); end A = 1; if issparse(A) == 0 then disp("It is not a sparse"); end