Write a mat file into netCDF file
30 次查看(过去 30 天)
显示 更早的评论
I have a mat file with time varying data obtained at different coordinate positions. The rows correspond to different
coordinate positions of a grid and columns correspond to diferent time points. I would like to
save this data in mat file to netCDF format. I would like to know how this conversion can be done.
0 个评论
采纳的回答
Bhupendra Prajapati
2020-7-15
编辑:Bhupendra Prajapati
2020-7-15
Data from the MATLAB workspace can be saved into the variable in the NetCDF file, using the netcdf.putVar function.
netcdf.putVar(ncid,varid,my_data);
For more information you can refer to the link below .
https://www.mathworks.com/help/matlab/import_export/exporting-to-network-common-data-form-netcdf-files.html?s_tid=answers_rc2-3_p6_MLT
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 NetCDF 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!