Skip to Main Content Skip to Search
Product Documentation

double (DataMatrix) - Convert DataMatrix object to double-precision array

Syntax

B = double(DMObj)
B = double(DMObj, Rows)
B = double(DMObj, Rows, Cols)

Input Arguments

DMObj

DataMatrix object, such as created by DataMatrix (object constructor).

Rows, Cols

Row(s) or column(s) in DMObj, specified by one of the following:

  • Scalar

  • Vector of positive integers

  • String specifying a row or column name

  • Cell array of row or column names

  • Logical vector

Output Arguments

BMATLAB numeric array.

Description

B = double(DMObj) converts DMObj, a DataMatrix object, to a double-precision array, which it returns in B.

B = double(DMObj, Rows) converts a subset of DMObj, a DataMatrix object, specified by Rows, to a double-precision array, which it returns inB. Rows can be a positive integer, vector of positive integers, string specifying a row name, cell array of row names, or a logical vector.

B = double(DMObj, Rows, Cols) converts a subset of DMObj, a DataMatrix object, specified by Rows and Cols, to a double-precision array, which it returns inB. Cols can be a positive integer, vector of positive integers, string specifying a column name, cell array of column names, or a logical vector.

See Also

DataMatrix | single

How To

  


Free Computational Biology Interactive Kit

See how to analyze, visualize, and model biological data and systems using MathWorks products.

Get free kit

Trials Available

Try the latest computational biology products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS