This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Export Data Programmatically

Export data from MATLAB® workspace into relational database using command line

Database Toolbox™ enables you to analyze data and export the results. To export data from the MATLAB workspace, use these functions to insert or update data in your database.


expand all

commitMake database changes permanent
rollbackUndo database changes
sqlwriteInsert MATLAB data into database table
updateReplace data in database table with MATLAB data
insertAdd MATLAB data to SQLite database table


Insert or Update Data in Database

Insert Data into Database Table

Perform calculations on data and insert the results into a database using the sqlwrite function.

Replace Existing Data in Database

Update records in a database.

Data Type Support

Find supported data types for data import and export.

MATLAB Interface to SQLite

Working with MATLAB Interface to SQLite

Analyze data without access to a database or driver by using the MATLAB interface to SQLite.