Plotting matrix columns - MATLAB & Simulink
www.mathworks.com › matlabcentral › answersMay 09, 2011 · Plotting matrix columns. I was able to do this in the past but forgot how I did it. Starting with a 2D matrix I was able to plot it with the first column as the X axis and generate individual sub plots of the remanining columns. Each column was its own plot with the 1st column as the X axis. A loop could do this but I seem to remember it was a ...
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.
Matrix of scatter plots by group - MATLAB gplotmatrix
https://www.mathworks.com/help/stats/gplotmatrix.htmlgplotmatrix (X,Y,group,clr,sym,siz) specifies the marker color clr, symbol sym, and size siz for each group. gplotmatrix (X,Y,group,clr,sym,siz,doleg) controls whether a legend is displayed in the figure. gplotmatrix creates a legend by default.