Trouble loading .bin file
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
I'm having trouble importing a .bin file on an FTP server. Below is the code. Any thoughts on why fopen is returning -1??
FULLurl = 'ftp://disc2.nascom.nasa.gov/data/TRMM/Gridded/Derived_Products/3B42RT/Daily/2001/3B42RT_daily.2001.03.01.bin';
fid = fopen(FULLurl, 'r');
a = fread(fid, 'float','b');
fclose(fid);
0 件のコメント
回答 (1 件)
Guillaume
2015 年 2 月 21 日
Any thoughts on why fopen is returning -1?
That would because fopen is only for accessing the filesystem. It does not work over ftp (or http for that matter).
3 件のコメント
Image Analyst
2015 年 2 月 21 日
Attach the file, and attach your m-file script that demonstrates the problem.
Guillaume
2015 年 2 月 22 日
a = fread(fid, Inf, 'float', 0, 'b');
参考
カテゴリ
Help Center および File Exchange で Downloads についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!