How to get different colours for different regions for this problem? Here are 10 regions and I want to colour the regions? How to modify the code to get the desired result?
x=0:.00001:1;y=x.*x;plot(x,y,'r')hold onz=sqrt(x);plot(x,z);hold ony=x;plot(x,y,'g')y=1-x;hold onplot(x,y,'k')x=0:.00001:.334;y=1-2*x;hold onplot(x,y,'r')axis([0 1 0 1])
Best Answer