How can I import asc.gz files into matlab?
2 ビュー (過去 30 日間)
古いコメントを表示
I need to get files from this directory: <ftp://sidads.colorado.edu/pub/DATASETS/NOAA/G02156/24km/2011/> into MATLAB however when I use URLREAD, it incorrectly reads in each file. Instead of reading in what should approximately be a 6400x6400 array, it reads in a supposed "1x24331" dimensional array something like this when I open up the variable: ')>N'
0 件のコメント
回答 (2 件)
tuncay tuncay
2017 年 6 月 13 日
How can I access the contents of .gz files with matlab
1 件のコメント
Walter Roberson
2017 年 6 月 13 日
gunzip the files.
There is no direct facility in MATLAB to access individual files within a .gz archive.
If you know a bit of Java, it is possible to place calls to appropriate java routines.
You might want to have a look at http://www.mathworks.com/matlabcentral/fileexchange/32089-listzipcontents
参考
カテゴリ
Help Center および File Exchange で Low-Level File I/O についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!