Example of MatLab code that can read XGMML (.gr.gz) extension file?

조회 수: 2 (최근 30일)
razin kac
razin kac 2020년 6월 4일
편집: Mohammad Sami 2020년 6월 4일
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

채택된 답변

Mohammad Sami
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개)

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by