Borrar filtros
Borrar filtros

What error my Matlab Code has for different X-axis value?

1 visualización (últimos 30 días)
Pankaj Sharma
Pankaj Sharma el 18 de Feb. de 2021
Editada: Pankaj Sharma el 18 de Feb. de 2021
The code of a filter is prepared using Transfer Function as per the IMAGE-1 (attached ). The output response of filter is obtained by running this Matlab code mentioned below. The output is shown in IMAGE-2 and has X-Axis frequency values different than that shown in IMAGE-1.
What error my code has for this difference in frequency values in these two images.
The code use is as follows:
%% Weighting of Vertical acceleration as per ISO-2631-1 %%
num=[87.72 1138 11336 5453 5509];
den=[1 92.6854 2549.83 25969 81057 79783];
P=tf(num,den);
[h,f]= freqs(num,den);
F=(f/(2*pi));
mag=abs(h);
plot(F,mag);
xlabel('Frequency (Hz)','fontsize',14)
ylabel('Weighting Factor (Wk)','fontsize',14)
xlim([0 50])

Respuestas (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by