Skip to content

GettingStarted

MiWalk edited this page Oct 4, 2016 · 1 revision

Getting Started

  1. Close this repo or download
  2. Place on your MATLAB path
  3. Ensure Origin is installed.
  4. Start Plotting!

Basic usage

This line creates an M2OPlot object, effectivly linking MATLAB to Origin. If Origin is already running then it connects to the existing instance. If not it will start Origin.

M2O = M2OPlot();

You can also create the code with an existing project. In this case that project will be opened. Note if Origin is already running then any unsaved work in a different project will be lost.

M2O = M2OPlot('C:\<DIR>\YOUR_PROJECT.OPJ');

Once you have finished plotting you should disconnect. This breaks the connection between MATLAB and Origin.

M2O.Disconnect;
Clone this wiki locally