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

2 views (last 30 days)
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

Accepted Answer

Mohammad Sami
Mohammad Sami on 4 Jun 2020
Edited: Mohammad Sami on 4 Jun 2020
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);

More Answers (0)

Categories

Find more on File Operations in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!