Average of Matrix [AxB] of Complex value
Show older comments
I have Some IQ data which is a 1000x1 array.
Now I want to apply this equation Σ((I² + Q²)/N/100),
Is there any MATLAB function to prcess this operation ?
7 Comments
KSSV
on 31 Mar 2022
I and Q two matrices with size 1000x1 ?
Touhidul Anwar
on 31 Mar 2022
KSSV
on 31 Mar 2022
Then what is I and Q in the equation?
Touhidul Anwar
on 31 Mar 2022
KSSV
on 31 Mar 2022
You have only one matrix.... what is I and Q? Is it by chance real and complex part?
Touhidul Anwar
on 31 Mar 2022
Santosh Fatale
on 6 Apr 2022
I need some clarification on matrix I and Q. Are you refering In-phase and Qudrature-phase compenent of complex signal which are respectively Real and Imaginary part of the signal under consideration?
Answers (1)
Hi Touhidul,
As per my understanding, you want to apply the formula Σ((I² + Q²)/N/100 over an array of complex numbers.
Assuming that “I” and “Q” in the formula represent the real and imaginary part of the numbers in the array, please refer to the following MATLAB code to calculate the result:
% Total number of samples
N = length(iqData); % here “iqData” represents the array of complex numbers
result = sum(abs(iqData).^2) /N/100;
“abs(iqData).^2” computes the square of the magnitude of each complex sample, which is equivalent to I^2 + Q^2 for each sample. “sum” adds up all the values of the samples.
Hope this helps.
Categories
Find more on Mathematics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!