How to change or modify variable that already exists netcdf ?

조회 수: 17 (최근 30일)
min wong
min wong 2016년 10월 3일
편집: Chad Greene 2023년 4월 5일
i Want to 'nc_sst_with_cj' repalce oringal variable 'SST'.
both of them are same three dimensional.
My code is
nc=netcdf.open('F:\tt\wrflowinp_d01','write')
nc=ncwrite('wrflowinp_d01','SST','nc_sst_with_cj');
but show error
Too many output arguments.

채택된 답변

Matthew Eicholtz
Matthew Eicholtz 2016년 10월 3일
There should be no output arguments for ncwrite. Check the documentation here.
The function call should be of the form
ncwrite(filename,varname,vardata);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by