Skip to Main Content Skip to Search
Product Documentation

Database Toolbox Workflows

Importing Database Data into the MATLAB Workspace

Here is the workflow for importing data from a database into the MATLAB workspace:

  1. Construct a query to import data from a data source.

  2. Define a MATLAB variable to store the results of the query.

  3. Run the query.

  4. (Optional) Use MATLAB functions to manipulate the data.

For more details about how to import database data into the MATLAB workspace, see Using Queries to Import Database Data into the MATLAB Workspace.

Exporting Data from the MATLAB Workspace to a Database

Here is the workflow for exporting data from the MATLAB workspace to a database:

  1. Construct a query to export data to a data source.

  2. Specify the MATLAB variable that contains the data to export.

  3. Run the query.

For more details about how to export data from the MATLAB workspace to a database, see Using Queries to Export MATLAB Workspace Data to a Database.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS