I am trying to change marker color of line graphs but unable to do it. Can anybody help to figure it out?
load('MCA_Disjoint.mat')Data1LDA = MCA_Disjoint(: , 1);Data2LDA = MCA_Disjoint(: , 3);Data3LDA = MCA_Disjoint(: , 5);WindowSizes = 50:25:450;WindowSizes = WindowSizes';f1=fit(WindowSizes,Data1LDA,'cubicinterp');f2=fit(WindowSizes,Data2LDA,'cubicinterp');f3=fit(WindowSizes,Data3LDA,'cubicinterp');figurehold onp(1,:) = plot(f1,WindowSizes,Data1LDA);p(2,:) = plot(f2,WindowSizes,Data2LDA);p(3,:) = plot(f3,WindowSizes,Data3LDA);set(p(1,2),'Color','red')set(p(2,2),'Color','black')set(p(3,2),'Color','blue')set(p, 'LineWidth', 2, 'MarkerSize', 20)
Best Answer