I'm trying to compare the impulse response calculated by the function "impulse" in matlab with a model computed from frequency and phase data. I'm unable to get a good fit in the time domain.
impulse_mag_ident = ifft(mag_ident.*exp(1j*pha_ident*pi/180),fs,'symmetric')./Ts;
impulse_mag_data = ifft(mag_data.*exp(1j*pha_data*pi/180),fs,'symmetric')./Ts;
[yy,tt]=impulse(G_identd,Ts*fs);
t_ax = linspace(0,1,length(impulse_mag_data));
figure()
plot(t_ax,impulse_mag_ident);
hold on
plot(tt,yy);
xlim([0 0.2])
legend('Ifft','Impulse')
title('Impulse response measurement')
xlabel('Time [s]')
ylabel('Amplitude')
0 Comments
Sign in to comment.