kindly help me to fill the diffrence with two diffrent colur in a x y plot as shown in the below example figure?
I need to shade postive(red color) and negative diffrences(blue color) in diffrent colors. Kindly give your suggesttions
t= 0:.01:1AA = cos(t)BB= sin(t)diff = AA-BBplot(t,AA)hold onplot(t,BB)patch([t fliplr(t)], [AA fliplr(BB)], 'r')hold off%%% any suggestions Please!!
Best Answer