In digital signal processing, numpy records the operation of a certain axis

Just as a save, please skip it.

Article Directory

numpy record

import numpy as np

loc_max=np.max(segMat,axis=1)	#按行,取每行的最大值

Insert picture description here


python column first

Instance

One sentence of code normalizes the four-digit matrix by column :

Insert picture description here


sig=np.array(sig/np.max(sig,axis=0))    # 归一化

Show:
Insert picture description here

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_41529093/article/details/113242661