1 2 3 4 5
function s = safeStr(s) % Change punctuation characters to they print properly s = strrep(s, '\', '/'); s = strrep(s, '_', '-');