About 12,000,000 results
Open links in new tab
  1. plot - MathWorks

    Create plots by passing a table to the plot function followed by the variables you want to plot. When you specify your data as a table, the axis labels and the legend (if present) are automatically labeled using the table variable names.

  2. Create Common 2-D Plots - MathWorks

    This example shows how to create a variety of 2-D plots in MATLAB®. The plot function creates simple line plots of x and y values. Line plots can display multiple sets of x and y data. The bar function creates vertical bar charts. The barh function creates horizontal bar charts. The stairs function creates a stairstep plot.

  3. 2-D and 3-D Plots - MathWorks

    To create two-dimensional line plots, use the plot function. For example, plot the sine function over a linearly spaced vector of values from 0 to 2π: You can label the axes and add a title. By adding a third input argument to the plot function, you can plot the same variables using a red dashed line. "r--" is a line specification.

  4. 2D Line Plot in MATLAB - GeeksforGeeks

    May 29, 2021 · In MATLAB we have a function named plot() which allows us to plot a line in 2 directions. Syntax: plot(X,Y) where X and Y represent the x and the y axis of the plane. The X and Y both are can be vectors or matrices but there are some conditions to plot the graph and these conditions are mentioned below:

  5. 10 Types of MATLAB 2D Plot Explained with Examples and Code

    Apr 9, 2019 · How to draw a MATLAB 2D plot? What are the different types of two-dimensional plots in MATLAB? Explained with code and examples.

  6. Chapter 6: Graphing in MATLAB – A Guide to MATLAB for ME 160

    MATLAB has tools that enable the user to display data within visual forms such as tables, 2D, or 3D graphs to increase readability for the user. General graphs can be created by the user with the plot command, which can be modified to incorporate colors, symbols, labels, and other aspects of the graph to ensure that the data is able to be read ...

  7. 2D Plotting in Matlab - YouTube

    This tutorial illustrates how to generate 2D plots in Matlab. Topics and timestamps:0:00 – Introduction2:35 – Using the ‘plot’ command4:26 – Decorating a pl...

  8. Step-by-Step Guide to Creating 2D Plots in MATLAB - YouTube

    In this MATLAB tutorial video, you'll learn the fundamentals of 2D plotting. In this step-by-step video, I'll guide you through creating the plot, adding a title, labeling the axes,...

  9. MATLAB – Plots in Detail - GeeksforGeeks

    Dec 16, 2022 · '2D' stands for 2-dimensional and a 2D line is a line that is moved in 2-dimensions. A line in 2D means that we could move in forward and backward direction but also in any direction like left, right, up, down. In MATLAB we have a function named plot() which allows us to …

  10. Creating 2-D Plots - MathWorks

    This example shows how to create 2-D line plots in MATLAB using the plot function. Create a regularly-spaced vector x from 0 to 2*pi using pi/100 as the increment between elements. Calculate sine for each value in x. Use the figure command to create a new figure and plot command to display result.

  11. Some results have been removed
Refresh