Question: Plot a sequence of curves in two different colors

 

 

Hello,

My question is  how to plot a sequence of curves in two different colors. Note that '' n '' is not fix. I need to plot in the same graph all curves.

Example:   solution[1]  --->  red
                   solution[2] ----> black
                   solution[3]-----> red
                   solution[4]----> black

                  etc....

                  solution[n-1]--> red
                  solution[n]----->black

Thanks for you help !

Please Wait...