赞
踩
采用jupyter作为工具,python具体代码分析过程如下:首先取西储大学各类轴承数据如下:
导入所需的库函数:
- import scipy.io # To use the '.mat' files
- import seaborn as sns
- import numpy as np
- import pandas as pd
- import os
- import matplotlib.pyplot as plt
读取文件夹下所有数据:
- for root, dirs, files in os.walk("0hp_load_48_KHz", topdown=False):
- for file_name in files:
- path = os.path.join(root, file_name)
- print(path)
显示结果如下:
取一具体数据分析,初步看下数据情况如下:
- path = r'0hp_load_48_KHz\7_OR3.mat'
- mat = scipy.io.loadmat(path)
- mat.items()
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。