23.3.3 Working with MATLAB Examples

Obtain the particle size distribution from TEM images

In this example, we analysis an TEM image and get the radius distribution data by calling the Matlab function imfindcircles() via MATLAB Command Window in Origin 2016. After obtained the results data in MATLAB, we use MATLAB Import tool to pass the data into Origin Worksheet. A histogram of particle radius with a distribution curve is ploted in Origin 2016 as shown in graph follows. We also run the Statistics on Column to get the Mean and Standard Deviation, and insert a formatted equation in the graph.


3D Convex Hull

In this example, we generated random distributed X position, Y position and Z position data. Then we called MATLAB function convhull() for 3D data from MABLAB Console in Origin to calculate the indices of convex hull points. Eventually we imported the convex hull indices data into Origin's worksheet and used this information to create a triangular shape surface which enclosed all data points inside of it.
ConvexHull Featured.png

Gaussian Mixture Model

In this example, we prepared data which contains two peak zones (black and red scatter). To fit such data, we firstly called MATLAB function cluster() to cluster two peak zones into two groups (cluster info dataset is imported into Origin and used to color data). Then we performed a Gaussian Mixture Model fit to data using fitgmdist() function and simulated a contour plot from the fitted parameters. Afterwards, we customized the contour plot to better display the fitted results.
Gaussian Mixture Model.png