plot(n, xn)
.
Variate the plotoptions (colors, symbols).
Solution:
>> n=1:100; >> x1=(n-1)./n; x2=(n+1)./n; x3=(n+(-1).^n)./n; >> plot(n,x1) % Standard: blue, lines >> hold Current plot held. >> plot(n,x2,'r') % Color: r,g,b,c,m,y,w. >> plot(n,x3,'g')