You can use strrep()
function to achieve this. Here is an example:
main.m243 chars9 lines
Output:
main.m53 chars4 lines
In this code, strrep()
replaces all occurrences of "
with '
in the cell array strs
. The resulting cell array is displayed using disp()
.
gistlibby LogSnag