removing speech marks from data
조회 수: 9 (최근 30일)
이전 댓글 표시
Hi,
I've not got a lot of experience with matlab so I apologise if it seems like a waste of time. I have a straightforward problem (hopefully). I am importing data in csv format, however the wizard cannot distinguish the data from the text header because it is in speech marks. I was wondering whether there is a simple way to remove the speech marks? I'm on quite a brief summer internship so I would really appreciate your help.
Many Thanks
Luke
댓글 수: 0
답변 (1개)
Fangjun Jiang
2011년 7월 15일
What do you mean speech marks? If it is text header, can you simply ignore them and import the numeric data only. When you do the import through wizard, you can specify the number of text header lines. Try to type the following command in the MATLAB command window and see what you got.
Data=importdata('MyDataFile.csv')
댓글 수: 3
Walter Roberson
2011년 7월 18일
You can use textscan() with the double-quote included in your Whitespace parameter.
참고 항목
카테고리
Help Center 및 File Exchange에서 Large Files and Big Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!