sct_test_signal
Generation of test signal.
Calling sequence
[x,fs,fi,fsymb,b] = sct_test_signal();
[x,fs,fi,fsymb,b] = sct_test_signal(num,opt)
[x,fs,fi,fsymb,b] = sct_test_signal(); [x,fs,fi,fsymb,b] = sct_test_signal(num,opt)
Parameters
- num:
Test signal number (1 is BPSK, 2 is QPSK)
- opt:
'r' for real signal, 'c' for complex (baseband or low-if) signal
- x:
Output signal (1d vector, complex or real)
- fs:
Sampling frequency
- fi:
Intermediate frequency
- fsymb:
Symbol frequency
- b:
Binary sequence before modulation
Test signal number (1 is BPSK, 2 is QPSK)
'r' for real signal, 'c' for complex (baseband or low-if) signal
Output signal (1d vector, complex or real)
Sampling frequency
Intermediate frequency
Symbol frequency
Binary sequence before modulation
Description
This function can be used so a to generate a test signal. The following signals are provided:
- Test signal n°=1: a 2 ms (2000 samples) BPSK signal, sampled at 1 MHz, with IF at 200 KHz and symbol frequency of 10 kbps.
- Test signal n°=2: The same, but in QPSK.
Example
x = sct_test_signal(); clf(); plot_psd(x,1e6); |

Test signal 1 (BPSK, with FI = 2 MHz) : power spectrum