필터 지우기
필터 지우기

How to represent a complex function in modulo

조회 수: 2 (최근 30일)
Alber
Alber 2020년 11월 2일
답변: Rohit Pappu 2020년 11월 25일
Hi,
I would like to represent this function where w goes from 0 to 250 kHz and B is 1. My code is as follows:
w = [0:1:249];
B1 = 0.5;
B2 = 1;
fc = 100;
to = 10*10^6;
a =exp(i*2*pi*fc*to);
b = exp(i*w*to);
c = 2*pi*dirac(w)-(B2*(a.*b));
stem(abs(c))
What I want to do is render the module of the function, but I'm getting this, which I think is wrong and I don't know where I'm failing...
I want to represent this function:
Thank you very much in advance.

답변 (1개)

Rohit Pappu
Rohit Pappu 2020년 11월 25일
Intuitively speaking, at line no. 9
stems(abs(c));
mod(dirac_delta(w))is 0 everywhere except at ω = 0 . = inf .
= β for all values of ω
Hence abs( c ) is always β except at ω = 0. Thus, stem(abs( c )) returns the above graph

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by