generate the i (in-phase) and q (quadrature) components of a signal at fc = 1.0925e9; fs = 100.0e6; in matlab

To generate the In-phase (I) and Quadrature (Q) components of a signal in MATLAB, you can use the built-in functions cos and sin.

Here's an example code that generates the I and Q components for a carrier frequency fc = 1.0925e9 and sampling frequency fs = 100.0e6:

main.m
% Define the carrier frequency and sampling frequency
fc = 1.0925e9; % Carrier frequency
fs = 100.0e6; % Sampling frequency

% Generate the time vector
t = 0:1/fs:1; % Time vector from 0 to 1 second

% Generate the I and Q components
I = cos(2*pi*fc*t); % In-phase component
Q = sin(2*pi*fc*t); % Quadrature component
318 chars
11 lines

In this code, we create a time vector t that ranges from 0 to 1 second with a sampling frequency of fs. Then, we use the cos and sin functions to generate the In-phase (I) and Quadrature (Q) components of the signal at the carrier frequency fc.

You can now use the I and Q components for further processing or analysis, depending on your application.

related categories

gistlibby LogSnag