필터 지우기
필터 지우기

Average of Matrix [AxB] of Complex value

조회 수: 12 (최근 30일)
Touhidul Anwar
Touhidul Anwar 2022년 3월 31일
편집: Pratik 2024년 1월 4일
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
Touhidul Anwar
Touhidul Anwar 2022년 3월 31일
Forget about IQ. I have a matrix of complex value.
Santosh Fatale
Santosh Fatale 2022년 4월 6일
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?

댓글을 달려면 로그인하십시오.

답변 (1개)

Pratik
Pratik 2024년 1월 4일
편집: Pratik 2024년 1월 4일
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.

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by