Generating a signal of 200 KHz BW at 1 MHz carrier

Status
Not open for further replies.

Communications_Engineer

Advanced Member level 3
Joined
Oct 10, 2008
Messages
894
Helped
179
Reputation
358
Reaction score
105
Trophy points
1,323
Location
Sindh, Pakistan
Activity points
5,542
Hello,

How can I generate a 200 KHz wide signal, centered at 1 MHz in Matlab?

Code:
% For Carrier signal
Fc = 1e6;
Fs =4*Fc; 

T = 1/Fs;
n = 0:T:1;

Carrier = cos(2*pi*Fc*n);

But what about the 200 KHz BW?

One more thing, rather than creating time-index from 0 to 1, I think that

Code:
n = 0:T:(Fc/Fs)^-1;

is enough too, right? One cycle for Cosine signal will represent its correct frequency
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…