
function[ int ] = Cantor( factor, it, left, right )
%Uses an IFS scheme to produce an abbreviated cantor set


res = 2;
siz = right - left;
int = linspace( 0, siz, res );


for i=1:it
    int = [ factor*int, factor*int + ( siz - factor*siz )  ];
end

int = int + left;
