Import (x,y)-data from Origin project (OriginLab Corp.) directly into MATLAB.


Updated 25 Jul 2014

View License

This function can be used to import paired columns of (x,y)-data from an Origin project file (OriginLab Corp.) directly into MATLAB.
importOrigin, by itself, opens a file selection dialog for specifying the Origin project file to be imported. The function identifies x-y pairs of column data in the specified Origin project and opens a modal data selection dialog for selecting a subset of data sets to import. If no output arguments are specified the imported data will be created as new variables in the MATLAB workspace.

DATA = importOrigin(...); returns the imported data in a structure DATA.

importOrigin uses MATLAB's actxserver to create an Origin COM Automation Server. This means that Origin must be installed on the target computer. More information can be found here:

Cite As

Soren Preus (2023). importOrigin (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Use COM Objects in MATLAB in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Bug fix when running function without output arguments.

- Possible to import data into the MATLAB workspace (base).
- Implemented MATLAB's own listdlg for the data selection, instead of using inputsdlg from the File Exchange.
- New default for opening a data selection dialog.

Updated the description

Fixed importing worksheets containing NaN and empty columns.

Updated links in description.