I need to download .sra files from the NCBI ftp server, if i use wget(wget<ftp://ftp-trace.ncbi.nih.gov/long_path/SRRxxxxxx.sra)>, i get the file downloaded. However if i try doing it within matlab, i get an error message if i put the name file or an empty cell in case i try getting all files with a given extension. What can the problem be?
ftpg=ftp('ftp-trace.ncbi.nih.gov');
mget(ftpg,'/long_path/SRRxxxxx.sra','try')
Output: Error using ftp/mget (line 67) Cannot create "try/long_path/SRRxxxxx.sra".