How can I add a matrix to an existing variable in a NetCDF file?
1 次查看(过去 30 天)
显示 更早的评论
I have an existing NetCDF file called 'gldata.nc'. Within this file, there is a variable called 'temp' that is 1024 x 1024 x 4383.
I want to add data from a variable called 'import_temp' that is 1024 x 1024 x 63 at the end of 'temp'.
Hope that makes sense.
I have tried using ncwrite:
ncwrite('gldata.nc', 'temp', 'import_temp')
But it doesn't seem to have changed anything.
Thanks!
回答(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!