Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

How to find all pairs, triplets, etc in MatLab?

Tags:
  1. Sep 24, 2014 #1
    Hi,

    I´m a complete MatLab noob and just started using it. I have a set of 30 timeseries measurements (so for a period of 100 years I have 30 measurements for every year, but some years do not have all 30 measurements) and I am trying to find the average of all possible pairs, triplets, etc until the full 30 average for every year. This is probably relatively simple to do if you understand MatLab, but unfortunately I do not, so if anyone can help me with this problem, I´d much appreciate it.
     
  2. jcsd
  3. Sep 24, 2014 #2

    Simon Bridge

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member
    2016 Award

    Welcome to PF;
    How would you go about averaging all possible pairs on paper? In a systematic way?
    Translate that process into matlab instructions.

    Repeat for triplets.

    note "...until the full 30 average for every year" makes no sense.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook