t1=load('201710h1.lvm'); %test 1
t2=load('201710h2.lvm'); %test 2
subplot(3,2,1); x= t1 (:,1); % time in test 1
sin = t1 (:,2); % sensor 1 in test 1
plot (x,sin)title('test 1 sensor 1 against time')xlabel('time') ylabel('Sesnor1') subplot(3,2,3);x1= t1 (:,1); sin1 = t1 (:,3);plot (x1,sin1)title('test 1 sensor 2 against time')xlabel('time') ylabel('Sesnor2') %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% subplot(3,2,2);x2= t2 (:,1);sin2 = t2 (:,2);plot (x2,sin2)title('test 2 sensor 1 against time')xlabel('time') ylabel('Sesnor1') subplot(3,2,4);x3= t2 (:,1);sin3 = t2 (:,3);plot (x3,sin3)title('test 2 sensor 2 against time')xlabel('time') ylabel('Sesnor2')
MATLAB: How do you plot fft of each sensor for both test
fftMATLAB
Best Answer