cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Averaging certain rows in a vector

TeaS
3-Visitor

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

1 ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:TeaS)

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

LucMeekes_0-1613129864298.png

Success!

Luc

View solution in original post

5 REPLIES 5
ttokoro
20-Turquoise
(To:TeaS)

image.png

LucMeekes
23-Emerald III
(To:TeaS)

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

LucMeekes_0-1613129864298.png

Success!

Luc

TeaS
3-Visitor
(To:LucMeekes)

Luc, thank you so much!

This is exactly what I was look for.

 

Have a nice day,

Tea

LucMeekes
23-Emerald III
(To:TeaS)

Correction to catch some errors:

LucMeekes_0-1613132850863.png

Luc

Fred_Kohlhepp
23-Emerald I
(To:TeaS)

One more, in Prime Express, just for fun:

Fred_Kohlhepp_0-1613221975755.png

 

Top Tags