Video length is 1:00

Plot Your Data in MATLAB – Without Writing Code

You can interactively create and explore visualizations for your data with the Create Plot Live Editor task. Choose visualizations from a list of categories or let the task recommend them based on your workspace variables. The task automatically generates MATLAB® code and adds labels to the generated visualization. Using this task, you can:

• Create a plot by selecting variables and a chart type.

• Explore different visualizations of the same data. Select some variables first, then try selecting different chart types.

• Explore different data in the same visualization format. Select the chart type first. The task will prompt you for data.

• Customize the appearance of your plot. For example, you can change the marker symbol for line charts and the arrangement of bars for bar charts.

For a list all the types of plots and the functions to generate them programmatically, see Types of MATLAB Plots documentation.

Published: 25 Mar 2021

The next time you want to create a plot use the Live Task for an easy interactive experience. If you know exactly what kind of plot you need start typing it into the live editor. This last entry opens the life task and repopulates with relevant plot types. Simply select your data and note that the interface changes dynamically based on the format of your data and the plot type.

If you're just starting to explore your data find the Live Task from the menu and select your data as the first step. You'll notice the two way filtering where your visualization choices adjust depending on your data and vise versa. You can also filter visualizations by category to narrow down which ones would be most meaningful to you. When you've created your plot don't forget to give it a meaningful title and other labels and click Update Code to reflect the changes.

When you're done, you can find all the code needed to reproduce and share your results. Use the Create Plot Live Task for an easy and interactive way to create your next plot in MATLAB.

Related Products