How to remove commas?
이전 댓글 표시
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.
댓글 수: 4
madhan ravi
2018년 7월 19일
편집: madhan ravi
2018년 7월 19일
Image Analyst
2018년 7월 19일
Please attach your data.txt file. I need to see if the m, a, t, etc. are letters or numbers. For example is it really 1,2,4456,876 that you really want to become a character string '124456876', or a number 124456876, which might not be possible depending on how many digits and decimal points there are.
madhan ravi
2018년 7월 19일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!