import numpy as np
import scipy.io as scio
path = r'D:/SAC-python/test/MOTOR.mat'
import scipy.io as scio
MOT_Eff = scio.loadmat(path)['mot_effmap']
MOT_N = scio.loadmat(path)['mot_speed_peak']
MOT_T = scio.loadmat(path)['mot_torque_peak']
MOT_Eff_T = scio.loadmat(path)['mot_effmap_torque']
MOT_Eff_N= scio.loadmat(path)['mot_effmap_speed']
np.save("MOT_Eff.npy",MOT_Eff)
np.save("MOT_N.npy",MOT_N)
np.save("MOT_T.npy",MOT_T)
np.save("MOT_Eff_T.npy",MOT_Eff_T)
np.save("MOT_Eff_N.npy",MOT_Eff_N)
# for key in file.keys():
# print(key)
mat2npy
最新推荐文章于 2024-11-12 23:15:59 发布