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.

single

Class: dataset

Convert dataset variables to single array

The dataset data type might be removed in a future release. To work with heterogeneous data, use the MATLAB® table data type instead. See MATLAB table documentation for more information.

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.

Was this topic helpful?