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

7 Ansichten (letzte 30 Tage)
Pankaj Sharma
Pankaj Sharma am 18 Feb. 2021
Bearbeitet: Pankaj Sharma am 18 Feb. 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])

Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by