how to store the data into 3d matrix?

Hi all,
i have two different 3d matrices (lat = 40*1*1461, lon= 23*1*1461) that I apply the following commands to specify the range of lat and lon. where 40 and 23 = number of rows, 1 = number of columns, 1461 is the 40*1 and 23*1 times repetation.
mask_lat = forc_duba.LAT >= 26 & forc_duba.LAT <= 30;
lat_atmoforc = forc_duba.LAT;
lat_atmoforc(~mask_lat) = nan;
mask_lon = forc_duba.LON >= 32 & forc_duba.LON <= 38;
lon_atmoforc = forc_duba.LON;
lon_atmoforc(~mask_lon) = nan;
I also have 2 different vectors (U = 1461*1, V = 1461*1) that I want to fit the extracted area of (lat,lon) with the specific corresponding data of U and V.
How can I do that? Any help will be appreciated.
Thanks a lot

4 件のコメント

KSSV
KSSV 2018 年 11 月 12 日
I suspect your data.....are you sure that lat/ lon are 3D and u,v are 2D matrices? How your data is? In a file? If so attach the data.
Lilya
Lilya 2018 年 11 月 12 日
yes, it is.. as I define it above. please see the attachment.
KSSV
KSSV 2018 年 11 月 12 日
Attach whole data..lon and v is missing.
Lilya
Lilya 2018 年 12 月 2 日
thanks for the responce and so so sorry for the late reply.
i've attached the rest of the data.
thanks again for the help sir KSSV

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeData Type Conversion についてさらに検索

タグ

質問済み:

2018 年 11 月 11 日

コメント済み:

2018 年 12 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by