Ältere Kommentare anzeigen
3次元配列の平均について、簡単なのでmean関数を用いたいのですが、どうすればいいかわかりません(知識不足です)。
例えば、2*3*4の配列Aを想定します。
行・列は変えずに、z方向で平均を取りたいと考えています。
この場合、プロダクト(配列B)のサイズは2*3*1です。
具体的には、
B(1,1,1)=(A(1,1,1)+A(1,1,2)+A(1,1,3)+A(1,1,4))/4
B(2,1,1)=(A(2,1,1)+A(2,1,2)+A(2,1,3)+A(2,1,4))/4
となると良いと考えています。
このような場合、できるだけ簡単に平均を取る方法を考えています。教えていただけると幸いです。
よろしくお願いいたします。
Akzeptierte Antwort
Weitere Antworten (1)
Hiroki Takeda
am 24 Mär. 2022
0 Stimmen
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!