MATLAB Answers

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

1 view (last 30 days)
Hello,
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]
Thanks,

  0 Comments

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by