Removing 'quotes' from a cell array
이전 댓글 표시
I have a cell array with 2 columns..
Column 1 is made up of 'a' ''b' 'c' '''d'
Column 2 is 123 456 678
I need to export this into a ASCII tab delimited file as a 123 b 456 c 678 ...
How can I remove the ' or '' or ''' quotes?
Thanks, S
댓글 수: 2
채택된 답변
추가 답변 (1개)
susan
2012년 10월 21일
0 개 추천
댓글 수: 3
Matt J
2012년 10월 21일
Are you talking to me? If so, you should post this as a comment to my answer. What part didn't work? It gets rid of double quotes fine for me, e.g.
>> mycell={'dog"','"cat','"mouse"'}
mycell =
'dog"' '"cat' '"mouse"'
>> strrep(mycell,'"','') %double quotes gone
ans =
'dog' 'cat' 'mouse'
susan
2012년 10월 21일
Matt J
2012년 10월 21일
Did you see my solution above (the Comment to my original Answer)?
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
