How does function std process complex numbers
이전 댓글 표시
In function S = std(A), there are complex numbers in matrix A. How does std calculate on complex numbers?
Thanks
채택된 답변
추가 답변 (1개)
John D'Errico
2019년 7월 15일
편집: John D'Errico
2019년 7월 15일
std uses the formula that is given by David, which is just the standard fornula, with no difference for complex inputs. But just to add a couple of useful formulas that apply for complex arguments:
var(V) = var(real(V)) + var(imag(V))
std(V) = sqrt(std(real(V))^2 + std(imag(V))^2 )
For example:
V = rand(1,5) + rand(1,5)*i;
var(V)
ans =
0.20393
var(real(V)) + var(imag(V))
ans =
0.20393
std(V)
ans =
0.45159
sqrt(std(real(V))^2 + std(imag(V))^2 )
ans =
0.45159
댓글 수: 1
Rik
2022년 2월 14일
Nice!!
카테고리
도움말 센터 및 File Exchange에서 Descriptive Statistics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!