sum matrix column to get another matrix

I have a matrix G 1441x365x91(MxNxL), I need another matrix D 1441x91 (MxL), whereby N must be summed. Shortly its a 1441x91 data over 365 days, and I need the 1441x91 data which is yearly sum.
thanks

 採用された回答

Stephan
Stephan 2019 年 7 月 8 日

0 投票

G1 = squeeze(sum(G,2));

その他の回答 (1 件)

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

製品

リリース

R2016a

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by