Check whether an array A is nearly real valued or not. Therefore an array with very small imaginary part is also seen as real valued.
Syntax
out = isalmostreal(A)
out = isalmostreal(A,'norm',Inf)
out = isalmostreal(A,'norm',2,'precision',10)Input
| A | double | 
Output
| out | logical | 
Options
| precision | exponential threshold | 
| norm | is used to compare the real and imaginary parts of A (default 1) |