MATLAB Answers

Grouping In Pairs the Coefficients of an Array and Computing the Average of each group

1 view (last 30 days)
I have an array with even number of elements and i need to group its coefficients in pairs.
After that i want to compute the average of each group.
I would like some help!
Here is an example:
Given Array: A=[88 88 89 90 92 94 96 97]
Output :AG=[88 88] [89 90] [92 94] [96 97]


Sign in to comment.

More Answers (0)


Community Treasure Hunt

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

Start Hunting!

Translated by