How does nanstd function process complex numbers

1 回表示 (過去 30 日間)
Luciano Junior
Luciano Junior 2021 年 2 月 24 日
回答済み: David Goodmanson 2021 年 2 月 25 日
Hi, I would like to know how Matlab process nanstd of a complex matrix?
Let C be a complex matrix defined by C=A+Bj,
nanstd(C) returns a complex matrix with dimentions equal to C and real(nanstd(C)) is ~= nanstd(A)
I just dont understand how it is computed and I can not find the explanation on Matalabs documentation.
Thank you

回答 (1 件)

David Goodmanson
David Goodmanson 2021 年 2 月 25 日
Hi Luciano
I'm not sure what you are referrng to with
" nanstd(C) returns a complex matrix with dimentions equal to C and real(nanstd(C)) is ~= nanstd(A) "
because nanstd(C) returns a row vector with the nanstd of each column calculated separately, and those nanstd values are real already. But it is true that real(nanstd(C)) is ~= nanstd(A) because
nanstd(C) = abs( nanstd(A) + i*nanstd(B) )

カテゴリ

Help Center および File ExchangePerformance and Memory についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by