function out = escape(in)
j=1;
for i=1:length(in)
    if(in(i)=='\')
        out(j) = in(i);
        out(j+1) = '\';
        j=j+2;
    else
         out(j) = in(i);
         j=j+1;
    end
end
