1.1.1 97.mat
1
m_97 = loadmat('data/Normal Baseline Data/97.mat')
1
m_97
{'__header__': b'MATLAB 5.0 MAT-file, Platform: PCWIN, Created on: Mon Jan 31 15:28:20 2000',
'__version__': '1.0',
'__globals__': [],
'X097_DE_time': array([[ 0.05319692],
[ 0.08866154],
[ 0.09971815],
...,
[-0.03463015],
[ 0.01668923],
[ 0.04693846]]),
'X097_FE_time': array([[0.14566727],
[0.09779636],
[0.05485636],
...,
[0.14053091],
[0.09553636],
[0.09019455]]),
'X097RPM': array([[1796]], dtype=uint16)}
1
m_97['X097_DE_time']
array([[ 0.05319692],
[ 0.08866154],
[ 0.09971815],
...,
[-0.03463015],
[ 0.01668923],
[ 0.04693846]])
1
m_97['X097_FE_time']
array([[0.14566727],
[0.09779636],
[0.05485636],
...,
[0.14053091],
[0.09553636],
[0.09019455]])
1
m_97['X097_DE_time'][0]
array([0.05319692])
1
print('标准数据长度:',len(m_97['X097_DE_time']))
2
print('电机转速:',m_97['X097RPM'][0][0])
标准数据长度: 243938
电机转速: 1796
1
# 设置Y轴范围
2
plt.ylim(-0.5,0.5)
3
# 抽样1000个进行展示
4
show_x = show_plot(m_97['X097_DE_time'],1000)
5
x = range(len(show_x))
6
plt.plot(x,show_x)
[<matplotlib.lines.Line2D at 0x27ed7173848>]
1.1.2 98.mat
1
m_98 = loadmat('data/Normal Baseline Data/98.mat')
1
m_98
{'__header__': b'MATLAB 5.0 MAT-file, Platform: PCWIN, Created on: Fri Jan 28 10:52:35 2000',
'__version__': '1.0',
'__globals__': [],
'X098_DE_time': array([[ 0.046104 ],
[-0.03713354],
[-0.089496 ],
...,
[-0.09909231],
[-0.10827138],
[-0.07092923]]),
'X098_FE_time': array([[ 0.02321636],
[ 0.08115455],
[ 0.09533091],
...,
[-0.00760182],
[ 0.04026909],
[ 0.06102 ]])}
1
print('标准数据长度:',len(m_98['X098_DE_time']))
标准数据长度: 483903
1
# 设置Y轴范围
2
plt.ylim(-0.5,0.5)
3
# 抽样1000个进行展示
4
show_x = show_plot(m_98['X098_DE_time'],1000)
5
x = range(len(show_x))
6
plt.plot(x,show_x)
[<matplotlib.lines.Line2D at 0x27ed71e6d88>]
1.1.3 99.mat
1
m_99 = loadmat('data/Normal Baseline Data/99.mat')
1
m_99
{'__header__': b'MATLAB 5.0 MAT-file, Platform: PCWIN, Created on: Fri Jan 28 11:19:25 2000',
'__version__': '1.0',
'__globals__': [],
'ans': array([[1]], dtype=uint8),
'X098_DE_time': array([[ 0.046104 ],
[-0.03713354],
[-0.089496 ],
...,
[-0.09909231],
[-0.10827138],
[-0.07092923]]),
'X098_FE_time': array([[ 0.02321636],
[ 0.08115455],
[ 0.09533091],
...,
[-0.00760182],
[ 0.04026909],
[ 0.06102 ]]),
'X099_DE_time': array([[ 0.06425354],
[ 0.06300185],
[-0.00438092],
...,
[ 0.00521538],
[-0.06571385],
[-0.12266585]]),
'X099_FE_time': array([[0.03862545],
[0.09676909],
[0.12738182],
...,
[0.03164 ],
[0.113 ],
[0.16292545]])}
1
print('标准数据长度:',len(m_99['X099_DE_time']))
标准数据长度: 485063
1
# 设置Y轴范围
2
plt.ylim(-0.5,0.5)
3
# 抽样1000个进行展示
4
show_x = show_plot(m_99['X099_DE_time'],1000)
5
x = range(len(show_x))
6
plt.plot(x,show_x)
[<matplotlib.lines.Line2D at 0x27ed7266608>]
1.1.4 100.mat
1
m_100 = loadmat('data/Normal Baseline Data/100.mat')
1
m_100
{'__header__': b'MATLAB 5.0 MAT-file, Platform: PCWIN, Created on: Fri Jan 28 11:25:48 2000',
'__version__': '1.0',
'__globals__': [],
'X100_DE_time': array([[ 0.01460308],
[ 0.05444862],
[ 0.10764554],
...,
[-0.02357354],
[ 0.00521538],
[ 0.04777292]]),
'X100_FE_time': array([[ 0.19292182],
[ 0.16436364],
[ 0.09081091],
...,
[ 0.10930182],
[ 0.05218545],
[-0.00452 ]]),
'X100RPM': array([[1725]], dtype=uint16)}
1
print('标准数据长度:',len(m_100['X100_DE_time']))
2
print('电机转速:',m_100['X100RPM'][0][0])
标准数据长度: 485643
电机转速: 1725
1
# 设置Y轴范围
2
plt.ylim(-0.5,0.5)
3
# 抽样1000个进行展示
4
show_x = show_plot(m_100['X100_DE_time'],1000)
5
x = range(len(show_x))
6
plt.plot(x,show_x)
[<matplotlib.lines.Line2D at 0x27ed91efc08>]
【无标题】
最新推荐文章于 2024-09-14 19:55:48 发布