Skip to Main Content Skip to Search
Product Documentation

single - Class: dataset

Convert dataset variables to single array

Syntax

B = single(A)
B = single(A,vars)

Description

B = single(A) returns the contents of the dataset A, converted to one single array. The classes of the variables in the dataset must support the conversion.

B = single(A,vars) returns the contents of the dataset variables specified by vars. vars is a positive integer, a vector of positive integers, a variable name, a cell array containing one or more variable names, or a logical vector.

See Also

dataset | double | replacedata

  


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