2-D line plot - MATLAB plot
https://www.mathworks.com/help/matlab/ref/plot.htmlCreate a 2-D line plot of Y. MATLAB® plots each matrix column as a separate line. figure plot (Y) Specify Line Style Plot three sine curves with a small phase shift between each line. Use the default line style for the first line. Specify a dashed line style for the second line and a dotted line style for the third line.
2-D line plot - MATLAB plot
www.mathworks.com › help › matlabCall the tiledlayout function to create a 2-by-1 tiled chart layout. Call the nexttile function to create an axes object and return the object as ax1. Create the top plot by passing ax1 to the plot function. Add a title and y-axis label to the plot by passing the axes to the title and ylabel functions. Repeat the process to create the bottom plot.
Plot expression or function - MATLAB fplot
www.mathworks.com › help › matlabFunction to plot, specified as a function handle to a named or anonymous function. Specify a function of the form y = f(x). The function must accept a vector input argument and return a vector output argument of the same size. Use array operators instead of matrix operators for the best performance. For example, use .* (times) instead of ...