Updated 24 Nov 2008
PLOTCOLS plots data in columns of a matrix. One x column and any number of y columns can be chosen. Also the mean of the columns can be subtracted and the columns can be divided by their standard deviation. Another option is to divide by the maximum absolute value.
This is very useful for comparing differently scaled data taken over time in one plot without the need to type long commands!
Also, you can specify a name for each column, which is used for the legend and the x-axis label, and a LineSpec as in the plot function.
Felix Zoergiebel (2023). PLOTCOLS (https://www.mathworks.com/matlabcentral/fileexchange/21429-plotcols), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots >
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.