1)find data length
2)howmany data we want to add
3) how many sampling after we add a new sample
4)how many loop
5)every loop add one sample
6) all after these how many sample we have to add(residual samples)
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.