how to display all of the 'nc' files ? I have total number of 52 files, and when i am run the code, it gives the output as '0*1 struct ' ? The code is given beolw
2 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
KSSV
2023-5-16
thepath = '' % give you path here
ncfiles = dir([thepath,'\*.nc']) ;
N = length(ncfiles) ; % total files
for i = 1:N
ncfile = fullfile(ncfiles(1).folder,ncfiles(i).name) ;
ncdips(ncfile)
% Load the data use ncread
% do what you want
end
0 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!