fpath=r’c:\Python\Radar_20221005\Matlab_For_RFSoC_RTS\Gain.txt’
L=[];Gain_I=[] ; Gain_Q=[]
with open(fpath,’r’) as f:
for line in f:
lst = line.split() #[‘32767′,’0’]
L.append( lst )
Gain_I.append( lst[0] )
Gain_Q.append( lst[1] )
print(“Gain_I:”,Gain_I)
print(“Gain_Q:”,Gain_Q)
近期留言