Why does casting in MATLAB 6.1 (R12.1) sometimes return a complex variable with a zero imaginary part?
The casting call UINT8(2 – i) returns a complex result with a zero imaginary part, but it seems that a real result should be obtained instead.
castcompleximaginaryMATLABr12.1pv1_swatrealuint8zero
Best Answer