This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this 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 tables
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 Database

Update records in a database.

Export Multiple Records from 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 MATLAB Interface to SQLite

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

Import Data Using MATLAB® Interface to SQLite

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

Roll Back Data After Updating 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?