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

9 views (last 30 days)
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])

Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!