import numpy as np

t_path = np.arange(wlen/2, len(x)-wlen/2, hop) / fs T_path = np.vstack((Idx, t_path)).T path = np.zeros(len(Idx))

for i in range(len(Idx)): if T_path[i, 0] == 2: path[i] = 1

Convert the following matlab code to python code t_path=wlen2hoplengthx-wlen2fs;T_path=Idx;t_path;path=zeroslengthIdx1;for i=11lengthIdx if T_pathi1==2 pathi=1; endend

原文地址: https://www.cveoy.top/t/topic/bH46 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录