フィルターのクリア

How to find time derivative of a variable in a NetCDF File?

1 回表示 (過去 30 日間)
Lavnish Gupta
Lavnish Gupta 2018 年 5 月 21 日
コメント済み: Lavnish Gupta 2018 年 5 月 21 日
I am having a NetCDF file which has temperature as one of its variable and time as the other. I want to calculate partial derivative of Temperature w.r.t time to plot it with time. How can we execute this in MATLAB?

採用された回答

KSSV
KSSV 2018 年 5 月 21 日
Read the variables into MATLAB from netCDF file using ncread. Let T be your temperature and t be you time variables. To get derivative of T w.r.t t use:
iwant = gradient(T)./gradient(t);
or
iwant = diff(T)./diff(t) ;
I go for gradient, because this will not reduce the size of variable.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNetCDF についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by