Hi,(adsbygoogle = window.adsbygoogle || []).push({});

I have 2 sets of data, one is 472 data points long, the other 370. They are both a function of the same variable "x", they both have the same value for "x" as the last point and the same value for "x" as the first point.

I'm being asked to average the two sets of data, but obviously I can't just use "(y+y2)/2". I also can't cut the 472 data set to 370 and then average because the scale is off. What can I do? Can I have matlab average values only when they correspond to the same value of "x"?

Any help would be greatly appreciated. Thanks.

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Matlab - averaging

Loading...

Similar Threads - Matlab averaging | Date |
---|---|

Matlab Coding angular spectrum of waves in a fluid | Yesterday at 7:30 AM |

How to program this in Matlab | Feb 28, 2018 |

Matlab Making a short test for self-adjointness | Feb 23, 2018 |

MATLAB: Average a large number of matricies from .mat files | Jun 4, 2009 |

**Physics Forums - The Fusion of Science and Community**