# mxIsFull, mxIsSparse

## Purpose

Inquire sparsity of a Matrix.

## C Synopsis

    int mxIsFull(pm)
      Matrix *pm;
    int mxIsSparse(pm)
      Matrix *pm;

## Fortran Synopsis

    integer*4 function mxIsFull(pm)
    integer*4 function mxIsSparse(pm)
    integer*4 pm

## Arguments

`pm`
  pointer to Matrix structure

## Description

These routines let you determine if a Matrix is stored in full or sparse form.

`mxIsFull` returns 1 if the Matrix pointed to by `pm` is a full Matrix and 0 otherwise.

`mxIsSparse` returns 1 if the Matrix pointed to by `pm` is a sparse Matrix and 0 otherwise.

There are no corresponding set routines. Use `mxCreateSparse` to create sparse Matrices.

(c) Copyright 1994 by The MathWorks, Inc.