フィルターのクリア

How to find min, max, and movmean for each page in multidimensional arrays

2 ビュー (過去 30 日間)
Dale Jenne
Dale Jenne 2019 年 12 月 20 日
回答済み: Catalytic 2019 年 12 月 20 日
I am working with a 60x101x8 multidimensional array. I would first like to find a movmean for each page that will find the mean across the rows and discard the endpoints leaving me with a 60x100x8. Can I use the movmean function for a multidimensional array?
Also, I would like to find the min and max value for each 60x101 page. How do i do this? I tried to find the min of all elements on the first page using the code below, but this returns the min of all elements and pages in the matrix.
min(A(:,:,1),[],'all')

回答 (1 件)

Catalytic
Catalytic 2019 年 12 月 20 日
MIN=min(A,[],[1,2]);
MAX=max(A,[],[1,2]);
MOVMEAN=convn(A,ones(1,k)/k,'valid');

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by