MATLAB: How to remove strings

strings

I tried to read a file named new.txt which contains information like
hello23,hi10
i tried to read it using textread and file name but i get it as
'hello23,hi10'..i need to be displayed as
hello23 hi10
please tell how to display by removing the strings ,else is there any command to read and display like above

Best Answer

As I understood, you want to remove the comma(,) from the string. You can do it by
str='hello23,hi10';
newstr=strrep(str,',',' ');
%OR
str=strrep(str,',',' ');