How to sum the elements of a 4D matrix?

7 ビュー (過去 30 日間)
Rita Baldi
Rita Baldi 2021 年 5 月 7 日
コメント済み: Rita Baldi 2021 年 5 月 9 日
Hi! And thank you to be here.
I have a communication system in which x=4 transmitters are transmitting a signal (vector of dimension t=1680) while they are moving (we have y=100 different points from which they transmit). At the receiver I have z=16 antennas which are receiving the signals coming from the 4 moving vehicles. I have collected all the signals transmitted in a 4D matrix (x,y,z,t) = (4,100,16,1680) and now I would to sum the contribution of all the signals arrived at each antenna, for all the antennas. At each antenna I have the contribute of 4 transmitters x 100 positions, and I want to sum them for each antenna in order to obtain a 2D matrix (z,t) = (16,1680). How can I do this? How to sum the contribution of just two dimensions of the 4D matrix?
Thanks a lot for your help!

採用された回答

Matt J
Matt J 2021 年 5 月 7 日
sum(yourMatrix,[1,2])
  1 件のコメント
Rita Baldi
Rita Baldi 2021 年 5 月 9 日
Thank you!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAntennas and Electromagnetic Propagation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by