Database Toolbox |
When you import data of the BOOLEAN type, MATLAB reads the data as a logical
data type within the cell array or structure, having a value of 0
(false) or 1
(true). Similarly, you can export logical data from MATLAB to a database. This example illustrates both importing and exporting BOOLEAN data. For more information about the MATLAB logical
data type, see Logical Types in the MATLAB Programming documentation.
Importing BOOLEAN Data
cellarray
.
SampleDB
.
Products
.
ProductName
and Discontinued
.
D
.
D
in the Command Window and MATLAB displays 77 records, with the first five shown here.
D
to view the contents in the Array Editor.
Chai
, appears as false
instead of 0
for the cell array. This is to distinguish it as a logical
value instead of a numeric 0
. In the Array Editor, double-click false
. Its logical value, 0
, appears in a separate window.
Exporting Data Using the VQB | Exporting BOOLEAN Data |
© 1994-2005 The MathWorks, Inc.