There is a matrix (10000,2) first column is time and second is vales. it's needed to sobplot this with a second matrix. This second matrix is the same first matrix but i want do this changing : 1-i want some specified and defined parts(rows) of first matrix to be shifted and i have only value of time shifting
for example:
10 parts must be shifted that this number could be different in different casesshiftTimeA=0.2 from 1 row to 500 in Matrix1 then:Matrix2(1:1500,1)=Matrix1(1:1500,1)+shiftTimeAshiftTimeB=0.3 from 3000 row to 6000 in Matrix1 then:Matrix2(3000:6000,1)=Matrix1(3000:6000,1)+shiftTimeBshiftTimeC=0.1 from 9000 row to 9500 in Matrix1 then:Matrix2(9000:9500,1)=Matrix1(9000:9500,1)+shiftTimeC....shiftTimeJ (for part 10)for other partsMatrix2=Matrix1
now how could make this 10 parts in a loop(that this number could be different in different cases) and subplot 2 matrix in a figure
Best Answer