Take the following matrix A:
A = [ 1 2 3 4 5 6]';
If I want to find the max. and min. for a predefined frequency (e.g. frequency of 3 elements) I reshape matrix A by defininga columns for every frequency I want to evaluate. After, I can look for the min. and max. of each column.
E.g.
Frequency = 3
A1 = reshape [A,3,2];MX1 = max(A1,[],1); MN1 = min(A1,[],1);
So frar so good. However, does anyone have an idea of how to change this code when the frequency should increase by one step for every column? In other words, matrix A1 should actually equal the following format:
A1 =1 2 3 42 3 4 53 4 5 6
Thank you for any advice!
best
Best Answer