MATLAB: How to remove commas

stringtxt

Hello everyone,
I want to remove commas between each letter and read the text file for example as follows:
a='matlab'
dlmwrite('a.txt',a)
dlmread('a.txt',a)= m,a,t,l,a,b
But I want the result to be shown as =>matlab
Any help would be appreciated.

Best Answer

a = 'MATLAB' ;
dlmwrite('data.txt',a,'delimiter','')