Ask about ploting X(omega)
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
Ask about ploting X(omega)

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> DSP
Author Message
VijaKhara
Guest





Posted: Sat Dec 03, 2005 1:16 am    Post subject: Ask about ploting X(omega) Reply with quote

Dear members:

Im my matlab homework, I am required to plot the spectrum of
x[n]=(0.8)^|n-10|
Using fomular I calculate

X(omega)=exp(-j*omega*10)*(1-0.8^n)/(1-2*0.8cos(omega)+0.8^2)

Because when I plot X(omega) , Matlab warns me that it neglects some
imaginary numbers/, I am wondering if it makes sense to plot X(omega)
in matlab or noone does that, they plot abs(X(omega)) and phase of
X(omega) instead.

Thanks
Back to top
Real_McCoy
Guest





Posted: Sat Dec 03, 2005 7:18 am    Post subject: Re: Ask about ploting X(omega) Reply with quote

"VijaKhara" <VijaKhara@gmail.com> wrote in message
news:1133564147.461543.239110@g49g2000cwa.googlegroups.com...
Quote:
Dear members:

Im my matlab homework, I am required to plot the spectrum of
x[n]=(0.8)^|n-10|
Using fomular I calculate

X(omega)=exp(-j*omega*10)*(1-0.8^n)/(1-2*0.8cos(omega)+0.8^2)

Because when I plot X(omega) , Matlab warns me that it neglects some
imaginary numbers/, I am wondering if it makes sense to plot X(omega)
in matlab or noone does that, they plot abs(X(omega)) and phase of
X(omega) instead.

Thanks

Depends if it's the Power spectrum or amplitude spectrum. Eitehr way you

don't plot the complex form.
You plot abs(X)^2 for Power and abd(X) for amplitude.

McC
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> DSP All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB