קובץ:Amplitude & phase vs frequency for a 3-term boxcar filter.gif
תוכן הדף אינו נתמך בשפות אחרות.
מראה
מתוך ויקיפדיה, האנציקלופדיה החופשית
![קובץ:Amplitude & phase vs frequency for a 3-term boxcar filter.gif](http://upload.wikimedia.org/wikipedia/commons/thumb/f/f7/Amplitude_%26_phase_vs_frequency_for_a_3-term_boxcar_filter.gif/600px-Amplitude_%26_phase_vs_frequency_for_a_3-term_boxcar_filter.gif)
גודל התצוגה המקדימה הזאת: 600 × 599 פיקסלים. רזולוציות אחרות: 240 × 240 פיקסלים | 481 × 480 פיקסלים | 643 × 642 פיקסלים.
לקובץ המקורי (643 × 642 פיקסלים, גודל הקובץ: 17 ק"ב, סוג MIME: image/gif)
![]() |
זהו קובץ שמקורו במיזם ויקישיתוף. תיאורו בדף תיאור הקובץ המקורי (בעברית) מוצג למטה. |
תקציר
תיאורAmplitude & phase vs frequency for a 3-term boxcar filter.gif |
English: These graphs depict the same transfer function as File:Frequency response of 3-term boxcar filter.gif. But here, the amplitude is a signed quantity. And where it is negative, the quantity π has been added to the phase plot (before computing the w:principal value). The purpose is to illustrate the linear-phase property of the FIR filter. |
|||
תאריך יצירה | ||||
מקור | נוצר על־ידי מעלה היצירה | |||
יוצר | Bob K | |||
אישורים והיתרים (שימוש חוזר בקובץ זה) |
אני, בעל זכויות היוצרים על עבודה זו, מפרסם בזאת את העבודה תחת הרישיון הבא:
|
|||
גרסאות אחרות |
Derivative works of this file: Amplitude & phase vs frequency for 3-term boxcar filter.svg
|
|||
GIFהתפתחות InfoField | ![]() Octave עם נוצרה ה GIF תמונת מפת סיביות |
|||
Octave/gnuplot source InfoField | click to expand
This script was derived from the original in order to address some GNUplot bugs: a missing title and two missing axis labels. And to add an Octave print function, which creates an SVG file. Alternatively, the gnuplot screen image has an export function that produces an SVG file, but the π characters aren't as professional-looking. graphics_toolkit gnuplot
clear all; close all; clc
hfig = figure("position",[100 100 509 509]);
x1 = .12; % left margin for name of Y-variable
x2 = .02; % right margin
y1 = .10; % bottom margin for ticks
y2 = .08; % top margin for title
dy = .08; % vertical space between rows
width = 1-x1-x2;
height= (1-y1-y2-dy)/2; % space allocated for each of 2 rows
x_origin = x1;
y_origin = 1; % start at top of graph area
%=======================================================
N= 256;
h = [1 1 1]/3; % impulse response
H = fftshift(fft(h,N)); % samples of DTFT
abscissa = (-N/2:N/2-1)*2*pi/N; % normalized frequency
% Specify the bins that are to show a negative amplitude
L = floor(N/6);
negate = [1+(0:L) N-(0:L-1)];
amplitude = abs(H);
amplitude(negate) = -amplitude(negate);
H(negate) = -H(negate); % compensate the phase of those bins
phase = angle(H);
%=======================================================
y_origin = y_origin -y2 -height; % position of top row
subplot("position",[x_origin y_origin width height])
plot(abscissa, amplitude);
% Default xaxislocation is "bottom", which is where we want the tick labels.
% set(gca, "xaxislocation", "origin")
hold on
plot(abscissa, zeros(1,N), "color", "black") % draw x-axis
xlim([-pi pi])
ylim([-.4 1.2])
set(gca, "XTick", [-pi -2*pi/3 0 2*pi/3 pi])
set(gca, "YTick", [-.2 0 .2 .4 .6 .8 1])
grid("on")
ylabel("Amplitude")
% set(gca, "ticklabelinterpreter", "tex") % tex is the default
set(gca, "XTickLabel", ['-\pi'; '-2\pi/3'; '0'; '2\pi/3'; '\pi';])
set(gca, "YTickLabel", ['-.2'; '0'; '.2'; '.4'; '.6'; '.8'; '1';])
title("Frequency response of 3-term boxcar filter", "fontsize", 12)
%=======================================================
y_origin = y_origin -dy -height;
subplot("position",[x_origin y_origin width height])
plot(abscissa, phase);
xlim([-pi pi])
ylim([-pi pi])
set(gca, "XTick", [-pi -2*pi/3 0 2*pi/3 pi])
set(gca, "YTick", [-pi -2 -1 0 1 2 pi])
grid("on")
xlabel('\leftarrow Frequency (\omega) (radians/sample) \rightarrow')
ylabel("Phase (radians)")
% set(gca, "ticklabelinterpreter", "tex") % tex is the default
set(gca, "XTickLabel", ['-\pi'; '-2\pi/3'; '0'; '2\pi/3'; '\pi';])
set(gca, "YTickLabel", ['-\pi'; '-2'; '-1'; '0'; '1'; '2'; '\pi';])
% The print function results in nicer-looking "pi" symbols
% than the export function on the GNUPlot figure toolbar.
print(hfig,"-dsvg", "-S509,509","-color", ...
'C:\Users\BobK\Amplitude & phase vs frequency for a 3-term boxcar filter.svg')
|
כיתובים
נא להוסיף משפט שמסביר מה הקובץ מייצג
פריטים שמוצגים בקובץ הזה
מוצג
ערך כלשהו ללא פריט ויקינתונים
7 באפריל 2014
image/gif
17,671 בית
642 פיקסל
643 פיקסל
היסטוריית הקובץ
ניתן ללחוץ על תאריך/שעה כדי לראות את הקובץ כפי שנראה באותו זמן.
תאריך/שעה | תמונה ממוזערת | ממדים | משתמש | הערה | |
---|---|---|---|---|---|
נוכחית | 15:47, 2 ביולי 2019 | ![]() | 642 × 643 (17 ק"ב) | Bob K | Add a title, and move x-axis label to the bottom. |
16:49, 15 באפריל 2014 | ![]() | 509 × 505 (9 ק"ב) | Bob K | Change the frequency domain from [][-π,π).] | |
19:03, 7 באפריל 2014 | ![]() | 521 × 524 (9 ק"ב) | Bob K | User created page with UploadWizard |
שימוש בקובץ
אין בוויקיפדיה דפים המשתמשים בקובץ זה.
שימוש גלובלי בקובץ
אתרי הוויקי השונים הבאים משתמשים בקובץ זה:
- שימוש באתר fr.wikipedia.org