Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - 日本語
Справка Scilab >> Sparse Matrix > Sparse Matrix Manipulation > issparse

issparse

determine whether input is sparse

Syntax

res = issparse(S)

Arguments

S

a scilab object

res

1 is the matrix is a sparse and 0 otherwise/

Description

res = issparse(S) returns 1 if S is a sparse matrix and 0 otherwise.

Examples

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

See Also

  • type — возвращает тип переменной
  • typeof — Human-readable type or overloading code of an object
Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:48:32 CEST 2016