I have 19 cells (19x1) with temperature data for an entire year where the first 18 cells represent 20 days (each) and the last cell represents 5 days, hence (18\*20)+5 = 365days. 

In each cell there should be 7200 measurements (apart from cell 19) where each measurement is taken every 4 minutes thus 360 measurements per day (360\*20 = 7200).

The time vector for the measurements is only expressed as day number i.e. 1,2,3...and so on (thus no decimal day),
which is therefore displayed as 360 x 1's... and so on.

As the sensor failed during some days, some of the cells contain less than 7200 measurements, where one in 
particular only contains 858 rows, which looks similar to the following example: 

```
a=rand(858,3);
a(1:281,1)=1;
a(281:327,1)=2;
a(327:328,1)=5;
a(329:330,1)=9;
a(331:498,1)=19;
a(499:858,1)=20;

```

Where column 1 = day, column 2 and 3 are the data.

By knowing that each day number should be repeated 360 times is there a method for including an additional
amount of every value from 1:20 in order to make up the 360. For example, the first column requires 
79 x 1's, 46 x 2's, 360 x 3's... and so on; where the final array should therefore have 7200 values in 
order from 1 to 20. 

If this is possible, in the rows where these values have been added, the second and third column should 
changed to nan. 

I realise that this is an unusual question, and that it is difficult to understand what is asked, but I hope I have been clear in expressing what i'm attempting to 
acheive. Any advice would be much appreciated.