How can I add a matrix to an existing variable in a NetCDF file?

2 ビュー (過去 30 日間)
Victoria K
Victoria K 2022 年 9 月 12 日
コメント済み: AFRIN 2022 年 9 月 29 日
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 件)

AFRIN
AFRIN 2022 年 9 月 29 日
Python

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by