Skip to Main Content Skip to Search
Product Documentation

cellstr - Class: dataset

Create cell array of strings from dataset array

Syntax

B = cellstr(A)
B = cellstr(A,VARS)

Description

B = cellstr(A) returns the contents of the dataset A, converted to a cell array of strings. The variables in the dataset must support the conversion and must have compatible sizes.

B = cellstr(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 | dataset.replacedata

  


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