How to 'flip/reverse' the signal?
20 views (last 30 days)
I have a signal like this (attached). This is sensor orientation data in z dimension during human walking.
I am extracting parts of the signal between red vertiical lines (precisely between first 8 and last 8 pairs of the lines).
When I plot all of them over one figure I get this.
for i = 1:length(S_or_z_cycle)
title('Shank orientation Z'); xlabel('% of movement cycle'); ylabel('degrees')
Is there a way to "flip/reverse" the signal below 0 so it aligns with the signal above 0, remaining its shape? When I apply "-" I get this which is not what I want as it changes the shape of the signal.
Wheareas I want something like this: