- Any arithmetic operation on a NaN, such as sqrt(NaN)
- Addition or subtraction, such as magnitude subtraction of infinities as (+Inf)+(-Inf)
- Multiplication, such as 0*Inf
- Division, such as 0/0 and Inf/Inf
- Remainder, such as rem(x,y) where y is zero or x is infinity
Complex number calculation ?
1 次查看(过去 30 天)
显示 更早的评论
Does anyone know that when I calculate magnitudes of a matrix with all complex numbers, why there are some NaN happening?
1 个评论
Stephen23
2016-9-19
编辑:Stephen23
2016-9-19
Because you are doing one of the operations listed on the NaN documentation that result in NaN values:
回答(1 个)
Star Strider
2016-9-19
Since I do not have your matrix, my guess is that there are NaN or Inf values in it.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Math Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!