MATLAB plot function plots the different lines with different colours, but the same linestyle and no marker, which gives a poor visibility when printing in black and white (typical publication).
This function modifies the linestyles and markers as well.
Can handle different drawing functions such as plot, semilogx, semilogy, ...
Sébastien Martin (2021). Plot with linestyles and markers (https://www.mathworks.com/matlabcentral/fileexchange/52091-plot-with-linestyles-and-markers), MATLAB Central File Exchange. Retrieved .
@omid zandi: Sorry I do not use Matlab anymore at work, but as I recall the latest versions I got to use (2018a) was also plotting with different linestyles by default. You can call this function the exact same way you'd call the plot function.
I wish you had put one example too. i have problem implementing the function and get same result as matlab built-in plot function.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!