Here are two solutions. strrep removes all instances of double quotes, while regexprep removes only double quotes at the beginning and end of a line (thanks to Gunther Struyf for requiring a second regexprep solution in some scenarios):
>> A = {'"hello"', '"wor"ld"'} A = '"hello"' '"wor"ld"' >> B = strrep(A, '"', '') B = 'hello' 'world' >> C = regexprep(A, '^"|"$', '') C = 'hello' 'wor"ld'
source share