I have two columns of data. First column is time and second column is a function of time. However some time values are lost, so the function values. I don't know the index of the lost row (the amount of data is too large). For example, I have this:
t x+w
2t 2x+w
3t 3x+w
6t 6x+w
7t 7x+w
However, it should be like:
t x+w
2t 2x+w
3t 3x+w
4t 4x
5t 5x
6t 6x+w
7t 7x+w
I want to expand the time array and add the corresponding function values. Actually f(t) is random but have a linear growing deterministic behaviour. Thus, It does not matter if I add two values among the thousands. So how can I do this in Matlab?
Sorry for my English. I hope I could explain myself. Thanks.