I am sorry, but I am really hopeless here using textscan and the format. I kept trying various way of getting the correct format to extract the time, lat, and lon from the following text;
filename = 'A20020817_0610.20130725153026.L2.11479-3186.084800.0000.nc'
I want to extract the time from first part of the above filename: time: '20020817_0610' as (YYYYMMDD HH:MM)
then getting the lat and lon; lon; '11479' as (114.79) lat; '-3186' as (-31.86)
so so far I have the following format, but it does not work....??
format_filename = '%*1n%8f%*1n%4f%*18n%5f%4f%*\n';
read_filename = textscan(filename,format_filename);
it gives me empty doubles, so what do I do wrong?
Thank you so much for your help!!