annotate toolboxes/bioakustik_tools/strings/escape.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
rev   line source
wolffd@0 1 function out = escape(in)
wolffd@0 2 j=1;
wolffd@0 3 for i=1:length(in)
wolffd@0 4 if(in(i)=='\')
wolffd@0 5 out(j) = in(i);
wolffd@0 6 out(j+1) = '\';
wolffd@0 7 j=j+2;
wolffd@0 8 else
wolffd@0 9 out(j) = in(i);
wolffd@0 10 j=j+1;
wolffd@0 11 end
wolffd@0 12 end