필터 지우기
필터 지우기

How can I calculate a dirac function of 2D discrete signal

조회 수: 8 (최근 30일)
ZhG
ZhG 2013년 10월 2일
답변: Youssef Khmou 2013년 10월 3일
For example, I have 20 2D points, as the input signal. (xi, yi) i = 1...Z , Assume that Z = 20, i.e. 20 points. How can I calculate this equation? The function is a dirac pulse.

답변 (2개)

Wayne King
Wayne King 2013년 10월 2일
편집: Wayne King 2013년 10월 2일
Unless I'm missing something, it's just a 1 at the location x_i,y_i in your matrix. For example:
X = zeros(20,20);
X(10,10) = 1;
  댓글 수: 2
ZhG
ZhG 2013년 10월 2일
So, you mean that only one of 20*20 samples is 1. Does it mean that (x,y) is not related to (xi,yi)?
Wayne King
Wayne King 2013년 10월 2일
(xi, yi) is the location of the impulse, that is just shifting the impulse from (0,0) to the location (xi,yi)

댓글을 달려면 로그인하십시오.


Youssef  Khmou
Youssef Khmou 2013년 10월 3일
hi @Wayne King gave you the kernel of the problem, here is another way out:
H=0*meshgrid(linspace(-0.5,0.5,20));
H(floor(end/2),floor(end/2))=1.00;
surf(H)

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by