maximum over three dimensional array

I have some code in which I have to find the maximum of certain dimensions of a multidimensional matrix nk x nkp x nz ...
In fact I needed to find the maximum over nkp dimension to obtain a matrix of optimal values of nk x nz.
So far I was looping over nz but I was wondering if it can be done without looping
Thank you

1 件のコメント

madhan ravi
madhan ravi 2019 年 4 月 11 日
Max along columns and then squeeze.

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

回答 (1 件)

Jorge Alonso
Jorge Alonso 2019 年 4 月 11 日

0 投票

Thanks. I tried that before but it was not working because I did not change the dimensions of the arrays

カテゴリ

ヘルプ センター および File ExchangeEnvironment and Settings についてさらに検索

質問済み:

2019 年 4 月 11 日

回答済み:

2019 年 4 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by