Skip to main content
1-Visitor
February 12, 2021
Solved

Averaging certain rows in a vector

Hi everyone,

 

I'm a newcomer to MathCAD and am stuck on a problem.

 

I have a vector V with n number of data and I want reduce it into a new vector V' in which the first row is the average of the values of first 70 rows from the vector V, then the next row in V' is the average of the values of next set of 70 rows in V, and so forth. I've written the problem more clearly bellow:

TS_6756330_0-1613122061059.png

I'm really not sure how to tackle this, so I'd be thankful for any input.

Thank you in advance!

Tea

LucMeekesAnswer
23-Emerald IV
February 12, 2021

This should do it, for averaging every 70, or any other number > 0:

LucMeekes_0-1613129864298.png

Success!

Luc

5 replies

ttokoro
21-Topaz I
February 12, 2021

image.png

Translate
t.t.
LucMeekes23-Emerald IVAnswer
23-Emerald IV
February 12, 2021

This should do it, for averaging every 70, or any other number > 0:

LucMeekes_0-1613129864298.png

Success!

Luc

Translate
TeaS1-VisitorAuthor
1-Visitor
February 12, 2021

Luc, thank you so much!

This is exactly what I was look for.

 

Have a nice day,

Tea

Translate
23-Emerald IV
February 12, 2021

Correction to catch some errors:

LucMeekes_0-1613132850863.png

Luc

Translate
23-Emerald I
February 13, 2021

One more, in Prime Express, just for fun:

Fred_Kohlhepp_0-1613221975755.png

 

Translate