Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

size

Class: bioma.ExpressionSet
Package: bioma

Return size of ExpressionSet object

Syntax

NFeatSam = size(ESObj)
[NFeatures, NSamples] = size(ESObj)
DimLength = size(ESObj, Dim)

Description

NFeatSam = size(ESObj) returns a two-element row vector containing the number of features and number of samples in an ExpressionSet object.

[NFeatures, NSamples] = size(ESObj) returns the number of features and number of samples in an ExpressionSet object as separate variables.

DimLength = size(ESObj, Dim) returns the length of the dimension specified by Dim.

Input Arguments

ESObj

Object of the bioma.ExpressionSet class.

Dim

Scalar specifying the dimension of the ExpressionSet object. Choices are:

  • 1 — Features

  • 2 — Samples

Examples

Construct an ExpressionSet object, ESObj, as described in the Examples section of the bioma.ExpressionSet class reference page. Determine the number of features and samples in the ExpressionSet object:

% Retrieve the number of features and samples
NumFeatSam = size(ESObj) 
Was this topic helpful?