Cycle through graph marks

2 views (last 30 days)
Eliran Farhi
Eliran Farhi on 15 May 2021
Answered: Walter Roberson on 15 May 2021
I am generating 10 functions, which are change dynamicaly as the loop goes on.
How can I assign a specific mark to each function, assuming that the order of the function is not kept,
but changes all the time?

Answers (1)

Walter Roberson
Walter Roberson on 15 May 2021
Create a cell array of linespec (character vectors indicating style and color and marker). Then each time you plot, index into a cell array to extract the linespec for that plot.

Categories

Find more on Line Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!