A smart interface to MatLab that can easily be used from Office

**Property Shortcuts**, **Enumerations** and the **Spline form**.

Lib.Execute "x = 0:pi/3:3*pi"

Lib.Execute "y = sin(x-pi/2)"

Lib.Figure.Classification = "Unclassified"

Lib.Figure.Information = "Figure information goes here... | You can add additional lines by using a vertical bar"

Dim plot As COMforMatLab.plot
** Set plot** = Lib.Figure.plot(1)

plot.Signal(1).Name = "y"

plot.Signal(1).Point = **ePoint**.Square

plot.Signal(1).Color = eColor.Red

plot.Signal(1).Form = eForm.**Spline**

plot.Axis.X.Label = "X"

plot.Axis.Y.Label = "Y"

Lib.Figure.Display

**multiple Signals**, **Axis Scaling** , **Limiting** and a number of **Markers**.

See the help file for the Library code involved to create this. The important point is that it took about 50 lines of high-level VBA code vs 100+ lines of complex MatLab commands.

**Library**" is the top level object, all other objects are referenced from here. The "*Configure*" method opens up the Configuration dialog which allows you to set a number of defaults which makes creating MatLab figures easier.

**Figure**" object is the object where MatLab figures can be created with. For detailed information on this object please download the included help (.chm) file.

**Data**" object is how you can efficiently read and write data between your Office application and MatLab. The "*Display*" method opens a display of the data related to current Plot. This is particularly useful so that you don't have to open up the full MatLab user interface.

**Log**" object can be used to log all commands sent to MatLab. The "*Display*" method shows you these commands. You can later use these commands to run directly in MatLab as a form of "canned" scripts.