How to read all the files in a folder based on file name?
Dear MATLAB Experts,
I have hundreds of files in a folder and I need toread all the files using last 5 digits of file name.
RSS_SSMIS_FCDR_V07R00_F17_D20220701_S0134_E0326_R80783
Here problem is this information is random in each file S0134_E0326.
However R80783 is increasing for next file, as shown in image.
%% code for readin file is
clear;clc; close;
ncfile_1 = ‘RSS_SSMIS_FCDR_V07R00_F17_D20220701_S0134_E0326_R80783.nc’ ;
ncinfo(ncfile_1)
ncdisp(ncfile_1)Dear MATLAB Experts,
I have hundreds of files in a folder and I need toread all the files using last 5 digits of file name.
RSS_SSMIS_FCDR_V07R00_F17_D20220701_S0134_E0326_R80783
Here problem is this information is random in each file S0134_E0326.
However R80783 is increasing for next file, as shown in image.
%% code for readin file is
clear;clc; close;
ncfile_1 = ‘RSS_SSMIS_FCDR_V07R00_F17_D20220701_S0134_E0326_R80783.nc’ ;
ncinfo(ncfile_1)
ncdisp(ncfile_1) Dear MATLAB Experts,
I have hundreds of files in a folder and I need toread all the files using last 5 digits of file name.
RSS_SSMIS_FCDR_V07R00_F17_D20220701_S0134_E0326_R80783
Here problem is this information is random in each file S0134_E0326.
However R80783 is increasing for next file, as shown in image.
%% code for readin file is
clear;clc; close;
ncfile_1 = ‘RSS_SSMIS_FCDR_V07R00_F17_D20220701_S0134_E0326_R80783.nc’ ;
ncinfo(ncfile_1)
ncdisp(ncfile_1) data import, matrix array, cell arrays MATLAB Answers — New Questions