Hub
Pricing About
NodeNode / Visualizer

Matlab Plot

Community NodesMatlab Scripting
Drag & drop
Like

This node executes a snippet/script using a local Matlab desktop instance to produce a plot (graph). The Matlab script can be coded manually or templates can be selected from a snippet template repository. Templates can be used as such or they can be modified to the users liking.

RGG ( R GUI Generator ) is used to configure the Matlab code using a graphical user interface in a way that the user does not need to know scripting in Matlab.

Script Editor:
Copy, cut or paste and Matlab code to the editor and/or select the columns from your data table. If a template is loaded used the GUI to adapt the script to the input data.

Templates:
Select a plot template from the template repository (double-click or "Use this template") to use that script and see the GUI. The description shows you an example plot than can be done using this template. Then configure the GUI according to your input data.

Output Options:
Specify the image dimensions of the plot and the type and location where to save that image.

This node needs a Matlab installation on the local machine!
If Matlab is not running, the node launches an instance of the Matlab desktop. It is recommended to let KNIME launch Matlab. The node can detect open Matlab instances, but this is not foolproof.

Conventions:

  • Snippet input variable name: kIn
  • Snippet output variable name: mOut
  • Supported Matlab types: dataset, table, struct or container.Map
  • While the script input type is defined by the preferences, the output type will be inferred from the output variable
  • The column names for dataset and table Matlab data types are taken from the object properties (VariableDescriptions/VarDesription). For the other types, they will be the same as the input as long as the header does not change.
  • Templates repositories are controlled via the preferences (Menu > KNIME > Preferences > KNIME > Matlab Scripting).

Further reading:
Further documentation can be found on the wiki .
To understand how to use flow variables in the script, please consult RGG XML .

Node details

Input ports
  1. Type: Table
    Data table
    A table which should be visualized with Matlab.
Output ports
  1. Type: Image
    Matlab plot as in image in Knime
    The generated Matlab plot as image column

Extension

The Matlab Plot node is part of this extension:

  1. Go to item

Related workflows & nodes

  1. Go to item
  2. Go to item
  3. Go to item

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits