If I understand correctly, move the section of data from x=1.25 to x=2.1 and place that segment just before x=0.
Assuming you have two variables x & y that were used to plot your data: plot(x,y),
segmentStart = 1.25;
segmentStop = 2.1;
placeBefore = 0;
newIdx = [...
find(x<min(placeBefore, segmentStart)), ...
find(x>=segmentStart & x<=segmentStop), ...
find(x>=0 & x<segmentStart), ...
find(x>segmentStop),...
];
plot(x, y(newIdx))
0 Comments
Sign in to comment.