Greetings
I have 4 different discrete data recorded at the same time interval with different rates (they don't have same size, and might be recorded in different time seconds in between). I want to sum them to have the total value over time, where for example at a specific time instant I need the sum of all 4 values, even if the 4 vectors doesn't have values at the same exact time instant. [They start and end at the same time]. How can I do this in MATLAB?
The 4 vectors are plotted below, where what I am asking for is their sum:
Also, suppose now that I have this sum along with 2 other similar summations. Each vector now starts and ends in different times with different time steps. The first one ends before the second starts. Yet I want to compare their growth over time (plot them together), while x axis keep fixed time steps rather than tuples count, how to do it :)?
Thank you for your time to read this.
Best Answer