Skip to content

Instantly share code, notes, and snippets.

%% ---------- RX.m (Receiver Script) ----------
clc;
clear;
close all;
%% =====================================================================
% 1. Parameters and Configuration
% =====================================================================
fs = 1e6; % Baseband sample rate (Hz)
fc = 3.5e9; % RF carrier frequency (Hz)
%% ---------- TX.m (Transmitter Script) ----------
clc;
clear;
rng(1); % Set random seed for reproducibility
%% =====================================================================
% 1. Parameters and Configuration
% =====================================================================
fs = 1e6; % Baseband sample rate (Hz)
fc = 3.5e9; % RF carrier frequency (Hz)