How to change or modify variable that already exists netcdf ?

21 次查看(过去 30 天)
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