How to plot multiple lines with different markers

后端 未结 6 1680
感情败类
感情败类 2021-02-03 12:27

I would like to plot multiple lines with MATLAB and do it so, that markers would be different in every line. I know that with colours this would be achieved with ColorSet

6条回答
  •  情深已故
    2021-02-03 12:59

    The following also helps.

    function testfig

    x=0:0.1:10;
    y1=sin(x);
    y2=cos(x);
    m = ['h','o','*','.','x','s','d','^','v','>','<','p','h'];
    
    plot(x,y1,[m(1)])
    hold on;
    plot(x,y2,[m(2)])
    

提交回复
热议问题