This function creates the random style for your plot (as a cell array with one element). Colors iterate over all colors except for white one. One can use it whenever needs to plot many different data sets on the same plot for preliminary purposes.
lineStyle = GetRandomLineStyleForPlot();
Alexander (2022). GetRandomLineStyleForPlot() (https://www.mathworks.com/matlabcentral/fileexchange/52653-getrandomlinestyleforplot), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!