maximum over three dimensional array

조회 수: 4 (최근 30일)
Jorge Alonso
Jorge Alonso 2019년 4월 11일
답변: Jorge Alonso 2019년 4월 11일
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일
Thanks. I tried that before but it was not working because I did not change the dimensions of the arrays

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by