Hi,
I am trying to save multiple .tif files that come from a URL list. I was able to read the URL list but I am still having problems to save (as .tif format) the links with different consecutive names using the urlwrite function… any of you guys know another way to do the same: this is the code I have so far:
clear allclose all% Load Data
URLs = urlread('http://www.dataset.txt');jj = 504; % Must Define Number of URL Links (files) to be downloaded
jjj = (1:jj)';jjj = num2str(jjj);ii = length(URLs(1,:))/jj; URLs = reshape(URLs,ii,jj);URLs = URLs';for x = 1:jj % As time goes from 1 to 10.
for y = 1:ii; urlwrite(URLs(x,:),'treecover.tif','UserName',jjj(x,:)); endend
any help or idea is welcome,
thanks,
Best Answer