Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Files from a folder
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi I am a new user of Matlab. I have a text file with Station Names and Distances. I have also a folder containing Data files (SAC format) containing names of stations. I need to extract only files compared with text file stations. Others must be deleted. How I can extract files of my interest. Following is the format. Text file e.g 71336526.csv Contents of file is : In first row: 'EventID=71336526" 2nd 3rd 4th ............: Column1= Disances Column2= Names like BAV for Folder files: Name of the folder = 71336526 File Containing:
NC.BAV..EHZ.D.2010.007.071549.SAC
NC.BBGB..HHE.D.2010.007.071550.SAC
NC.BBGB..HHZ.D.2010.007.071550.SAC
I need to extract only with the name as BAV as in text file. How to extract? Waiting for an immediate response. Cheers Zafar
댓글 수: 2
Stephen23
2018년 5월 8일
@Muhammad Zafar Iqbal: please edit your question and upload a sample file by clicking the paperclip button.
sudhakar shinde
2018년 5월 8일
답변 (1개)
KSSV
2018년 5월 8일
Your files are not text files.....they are binary...to read the files, please check this link: https://in.mathworks.com/matlabcentral/fileexchange/46356-rdsac-and-mksac--read-and-write-sac-seismic-data-file
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!