Running dir() or mget() on FTP object causes MATLAB to crash

2 ビュー (過去 30 日間)
John Smith
John Smith 2012 年 2 月 18 日
The following code causes MATLAB to crash at dir() in v7.10.0.59 (R2010a) and v7.12.0.635 (R2011a) (and possibly others) on Win7 x64 machines:
f = ftp('ftp.mathworks.com')
dir(f);
close(f)

回答 (1 件)

Alex
Alex 2012 年 8 月 21 日
Confirmed in 2012a on Windows 7 x64. It sounds like MATLAB doesn't let you use passive mode FTP, at least in Windows. Here's a workaround:

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by