Note that the data are overlaping in each segment as per the requirements
1st cell 1
2nd Cell 10
3rd Cell 20
If data are non overlaping case,it can be easiliy achieved using mat2cell.
One Attempt: Do modify accordingly