I have three files named as modis1.hdf, modis2.hdf and modis3.hdf in one folder. I am able to read files individually using my command.
for i=1:3 or for i=1
lst_try=['D:\lst2016\lst_try\modis',num2str(i),'.hdf'];
lst_3(:,:,:,:,i)=hdfread(lst_try, 'MODIS_Grid_Daily_1km_LST', 'Fields', 'LST_Day_1km', 'Box',{[76.83 77.34], [28.88 28.41]});
end
I want to save each file separately either in hdf format or ascii format. Therefore, i was using command
save(lst_try,'lst_3','-hdf')
But not able to save file individually.