Example of MatLab code that can read XGMML (.gr.gz) extension file?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have a file in XGMML format (USA-road-d.BAY.gr.gz). But, I do not know how to make MatLab can read such an extension file. I want to know if anyone has any MatLab code, just for example, that can read the same extension file or is it possible Matlab can recognize it? big thanks
댓글 수: 0
채택된 답변
Mohammad Sami
2020년 6월 4일
편집: Mohammad Sami
2020년 6월 4일
This file appears to be a text file which gzip compressed.
You can extract the file with function gunzip and then perhaps load it with readtable.
a = gunzip('USA-road-d.BAY.gr.gz');
t = readtable(a{1},'FileType','text','NumHeaderLines',7);
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 File Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!