Version 1.1 is now out.
Plot data in a Excel file with MATLAB featuring:
- Easy plotting by pasting data into Excel spreadsheet and clicking buttons
- Linked brush tools between subplots
- Download the latest version from here.
- Install and setup Spreadsheet Link, see instructions below.
- Unzip the file and open
Plot.xlsm. - Follow the steps in
Plot.xlsm.
- OS: Windows.
- MATLAB:
- Version: R2019b or newer.
- Toolbox: Spreadsheet Link (for Microsoft Excel) Spreadsheet Link™ connects Microsoft® Excel® spreadsheet software with the MATLAB® workspace, enabling you to access the MATLAB environment from an Excel spreadsheet.
- Enable macros of
Plot.xlsmin Excel. See instructions on Microsoft Support.
- Follow the documentation to install Spreadsheet Link, if it is not installed.
- To enable the Spreadsheet Link add-in, start a Microsoft Excel session and follow the steps in the documentation.
- Open the Preferences dialog of Spreadsheet Link from MATLAB group on the top right of Home tab of Ribbon.
-
Modify following settings:
-
Change "MATLAB startup folder" to where
PlotColumns.mis located. -
Enable "Treat missing/empty cells as NaN", as shown above.
-
Optional settings:
-
Start MATLAB at Excel start up: Kind of annoying. I recommend disable this option. However, if this option is disabled, you must start MATLAB manually in Excel before plotting. MATLAB sessions not launched by Excel cannot be used to run macro with Spreadsheet Link. To start MATLAB manually: Click MATLAB group on the top right of the Home tab in your Excel worksheet and click Start MATLAB.
-
MATLAB program id: Specifies the MATLAB version to open when Spreadsheet Link starts in Microsoft Excel.
-
Use MATLAB desktop: Launch MATLAB with full gui or command line only, default is command line only.
-
Force use of MATLAB cell arrays with MLPutMatrix: DO NOT enable this option. It might cause some trouble if your data have no headings.
-
-
-
You might need to update the references in
Plot.xslm:- Open
Plot.xslmwith Microsoft Excel - open the Visual Basic® Editor window by clicking Visual Basic on the Developer tab. (If you do not find the Developer tab, see the Excel Help.)
- In the left pane, select a module for which you want to update a reference.
- From the main menu, select Tools > References.
- In the References dialog box, select the SpreadsheetLink check box.
- Click OK.
- Open



