You are on page 1of 3

Database Toolbox

Key Features

Importing Data into MATLAB

Exporting Data to a Database

Using the Database Explorer App

Working with MongoDB

Working with Neo4j Graph Databases

Key Features
Database Explorer app for working with databases interactively
Support for graph database Neo4j and noSQL database MongoDB
JDBC- and ODBC-compliant database connections, with fast read/write via a native ODBC interface
Functions for executing queries using SQL files and SQL statements
Data import and export with multiple databases in a single session
Large data set import via a single transaction, via multiple transactions, or as a DatabaseDatastore object
Direct data import into numeric, cell, structure, tables, and dataset arrays

Database Explorer (top) and automatically generated SQL statements (bottom).


Importing Data into MATLAB
Database Toolbox supports standard SQL commands, such as those used to further define data to import and retrieve from specific objects. After you
import data into MATLAB, you can view attributes of the imported data, as well as the data itself, and use MATLAB commands to process the data. Finally,
you can save commands in a MATLAB program file to automate the process at a later time.

Using Scripts and Stored Procedures


With Database Toolbox, you can execute scripts and stored procedures to:

Execute SQL scripts directly within MATLAB and store the results for further processing
Call stored procedures within databases and pass parameters between MATLAB and the database
Retrieve data from a cursor object that contains multiple result sets

Working with Multiple Databases


Database Toolbox enables you to connect to multiple data sources within a single session and browse databases associated with each source. Within
MATLAB, you can construct queries to separately retrieve selected data from each database for combined processing.

Importing Large Data Sets


Database Toolbox enables you to extract data from large data sets in a segmented and sequential manner. You can retrieve all data at once or a subset of the
data.

Native ODBC Driver


Database Toolbox enables you to connect to ODBC-compliant databases using a native ODBC interface. You can run queries and stored procedures, import
data from the database, and export data all at once or in batches.

MathWorks Consultants Help Automate Data Access from Disparate Sources


Database Toolbox commands display how to import a column of data from a table.

Exporting Data to a Database


After completing calculations or data manipulation in MATLAB, you can export the results by moving data into a matrix, cell array, table, or structure, and
defining the database column names to which the data is written. You can export the results as new data, or update the original data completely or
conditionally.

Transacting with Supported Databases


For added security, Database Toolbox enables a transactional exchange of data with supported databases. With this feature you can:

Access auto-commit functions of the underlying database


Make permanent changes to the database
Undo any changes made since the last time changes were committed or rolled back

Database Toolbox commands display how to export a MATLAB array into a table in the sample database. The variable stores the names of relevant columns.

Using the Database Explorer App


The Database Explorer app enables you to explore and exchange data with relational databases without any prior knowledge of SQL.

You might also like