nccreate overwrite existing file
4 次查看(过去 30 天)
显示 更早的评论
How to use nccreate to create a new file clobbering any previous file with the same name?
Matlab's question-begging documentation doesn't help. Here's matlab's info on nccreate:
"If filename does not exist, then nccreate creates the file using the netcdf4_classic format."
Great, but if the filename does exist?
0 个评论
采纳的回答
Stijn Haenen
2019-11-26
Have you tried this:
if exist(filename)
delete filename
end
nccreate.....
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 NetCDF 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!