This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

Data Export from MATLAB

Export data from MATLAB® into relational database

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


commit Make database changes permanent
datainsert Export MATLAB data into database table
fastinsert Add MATLAB data to database table
insert Add MATLAB data to database tables
rollback Undo database changes
update Replace data in database table with MATLAB data


Export Data to New Record in Database

Export a new record from the MATLAB workspace and commit it to the dbtoolboxdemo data source.

Replace Existing Data in a Database

Update records in a database.

Export Multiple Records from the MATLAB Workspace

Import data and export multiple records to a new table.

Export Data Using Bulk Insert

Increase import speed by running a bulk insert from a flat file.

Working with the MATLAB Interface to SQLite

To analyze your data using SQL in MATLAB without access to a database or driver, use the MATLAB interface to SQLite.

Import Data Using the MATLAB® Interface to SQLite

This example shows how to move data between MATLAB® and the MATLAB® interface to SQLite.

Roll Back Data After Updating a Record

This example shows how to update data in a database and roll back the changes.

Data Type Support

Find supported data types for data import and export.

Was this topic helpful?