Hi, everyone.
I'm plotting two signals, as can be seen in the next image:
The time and voltage are 2 different arrays that are plotted for each signal. The 2 arrays for the blue signal are attached to this description and are time5a14_S1R1_TAI and SM_TAI_S1R1_5A14. The 2 arrays for the red signal are attached to this description and are time5a14_S1R1_TAD and SM_TAD_S1R1_5A14. My code for this plot is the next one:
load('time5a14_S1R1_TAI')
load('time5a14_S1R1_TAD')
load('SM_TAI_S1R1_5A14')
load('SM_TAD_S1R1_5A14')
lim5=5;
lim14=14;
figure
plot(time5a14_S1R1_TAI,SM_TAI_S1R1_5A14,'b','linewidth',2)
hold on
plot(time5a14_S1R1_TAD,SM_TAD_S1R1_5A14,'r','linewidth',2)
hold off
grid on
legend('Tibial Anterior Izquierdo (Envolvente)','Tibial Anterior Derecho (Envolvente)')
xlabel('Tiempo (seg)')
ylabel('Voltaje (mV)')
title('Datos de EMG filtrados - Sensor Tibial Anterior Derecho e Izquierdo (S1R1)')
xlim([lim5 lim14])
I need to move the red signal to the left, as can be seen in the next image:
My code for this plot is similar to the first one, and is this:
lim5=5;
lim14=14;
figure
plot(time5a14_S1R1_TAI,SM_TAI_S1R1_5A14,'b','linewidth',2)
hold on
plot(time5a14_S1R1_TAD(1:end-673),SM_TAD_S1R1_5A14(674:end),'r','linewidth',2)
hold off
grid on
legend('Tibial Anterior Izquierdo (Envolvente)','Tibial Anterior Derecho (Envolvente)')
xlabel('Tiempo (seg)')
ylabel('Voltaje (mV)')
title('Datos de EMG filtrados - Sensor Tibial Anterior Derecho e Izquierdo (S1R1)')
xlim([lim5 lim14])
My problem is that I need to adjust the samples from the blue signal, because I already did a manipulation in the red one to be plotted from different points in the array. But I don't know how to do it and I can't find didactit information about this kind of adjust of samples in MATLAB.
If someone can help me I would be really grateful.