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

5 vues (au cours des 30 derniers jours)
Pankaj Sharma
Pankaj Sharma le 18 Fév 2021
Modifié(e) : Pankaj Sharma le 18 Fév 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])

Réponses (0)

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by