File Exchange > Import and Export >    Export to mat

Author:
OriginLab Technical Support
Date Added:
6/12/2024
Last Update:
12/6/2024
Downloads (90 Days):
32
Total Ratings:
0
File Size:
196 KB
Average Rating:
File Name:
Export_to_mat.opx
File Version:
1.00
Minimum Versions:
License:
Type:
App
Summary:

Export worksheets and matrices to MAT file.

Screen Shot and Video:
Description:

PURPOSE
This app can be used to export data in Origin’s worksheets and MSheets to MATLAB’s mat file.

INSTALLATION
Download the file Export_to_mat.opx, and then drag-and-drop onto the Origin workspace. An icon will appear in the Apps Gallery window.
NOTE: This app requires to install MATLAB first.

OPERATION
Make a worksheet or MSheet for input data active. Click on the Export to mat icon in the Apps Gallery window. A dialog will open. Dialog settings include:

Settings Description
Data Source Determine which data to output.
  • Current Worksheet
    All data in current worksheet
  • Current Workbook
    All data in current workbook
  • Workbooks in Current Folder
    All data in current folder’s worksheets
  • All Workbooks
    All data in current project’s worksheets
  • Current Matrixbook
    All data in current MBook
  • Matrixbooks in Current Folder
    All Data in current folder’s MBooks
  • All Matrixbooks
    All Data in current project’s MBooks
  • All Workbooks and Matrixbooks
    All Data in current project’s workbooks and MBooks
Data for a New Variable Determine whether each column in a worksheet or the whole worksheet is a new variable in the exported mat file. It is available when Data Source includes worksheets.
  • Column
    Each column is a new variable.
  • Worksheet
    The whole worksheet is a new variable.
Variable Name in MATLAB by Determine variable name by object name (column, sheet, MSheet) in Origin:
  • Long Name
  • Short Name
  • Comments
MAT File Version Specify exported mat file version in MATLAB.
  • Version 7.3
    Use an HDF5-based format.
  • Version 7
    Maximum size for each variable is 231 bytes.
MAT File Name Specify the exported mat file path and name.

SAMPLE OPJU FILE
This app provides a sample OPJU file. Right click on the Export to mat icon in the Apps Gallery window, and choose Show Samples Folder from the short-cut menu. A folder will open. Drag-and-drop the project file ExportMatEx.opju from the folder onto Origin. The Notes window in the project shows detailed steps.
Note: If you wish to save the OPJU after changing, it is recommended that you save to a different folder location (e.g. User Files Folder).

Related Apps

  1. HDF Connector
  2. MATLAB Connector

Updates:

Reviews and Comments:

Be the first to review this File Exchange submission.