comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:e9a9cd732c1e
1 function out = escape(in)
2 j=1;
3 for i=1:length(in)
4 if(in(i)=='\')
5 out(j) = in(i);
6 out(j+1) = '\';
7 j=j+2;
8 else
9 out(j) = in(i);
10 j=j+1;
11 end
12 end