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?
But what about the 200 KHz BW?
One more thing, rather than creating time-index from 0 to 1, I think that
is enough too, right? One cycle for Cosine signal will represent its correct frequency
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