sum matrix column to get another matrix

1 次查看(过去 30 天)
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
G1 = squeeze(sum(G,2));

更多回答(1 个)

Asliddin Komilov
Asliddin Komilov 2019-7-8
thanks

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

产品


版本

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by