Hello, I wrote a code that produces polynomiographic drawings of input polynomials I put all the colors in a vector that are coded with a letter but i want more colors so i can input polynomials of higher grades but nothing seems to work. here is the code i have
function [ y ] = polyn( f,df,c)nulpt=roots(c);k=['r' 'y' 'b' 'g' 'm' 'c' 'w' 'k']; d=numel(nulpt);for a=(-1.5:10^(-2):1.5) for b=(-1.5:10^(-2):1.5) x=a+b*1i; y=newton(f,df,x); for l=1:d if abs(y-nulpt(l))<10^(-2) plot(a,b,'.', 'Color', k(l)) hold on end end end endendthis works fine but i want more colors in k i have tried naming a color like r=[1 1 1] or just put the vector in k but nothing seems to work
Best Answer