I have some excerpt code for Matlab. I want to transfer to python3.7 code. But I found out some Matlab function I can not transfer to python 3.7 it, such as function typecast, and single in Matlab. Therefore, How could I write the python code and get the same result? Thank you
Here is the Matlab code
AA= uint32(3249047552)
DPD = typecast(AA,'single');
Print(DPD)
DPD = -21.0664 <== This is matlab result.
With
numpy
you can useview()
: