Main Content

isempty

Class: bioma.data.MetaData
Namespace: bioma.data

Determine whether MetaData object is empty

Syntax

TF = isempty(MDObj)

Description

TF = isempty(MDObj) returns logical 1 (true) if MDObj is an empty MetaData object. Otherwise, it returns logical 0 (false). An empty MetaData object contains no variable names, values, or descriptions.

Input Arguments

MDObj

Object of the bioma.data.MetaData class.

Examples

Construct a MetaData object, and then check to see if it is empty:

% Import the bioma.data namespace to make constructor function
% available
import bioma.data.*
% Construct MetaData object from .txt file
MDObj2 = MetaData('File', 'mouseSampleData.txt', 'VarDescChar', '#');
% Determine if MetaData object is empty
isempty(MDObj2)