Matlab equivalent code in python

5 次查看(过去 30 天)
Hi What would be an equivalent code in python for this line of Matlab code
X_test = int8(single(X_test) - 127)

采纳的回答

Walter Roberson
Walter Roberson 2019-5-1
X_test = np.int8(np.float32(X_test)-127)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Call Python from MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by