标签:int sci val type dataset summer 分享 img matrix
import networkx as nx
import matplotlib.pyplot
import scipy.io as sio
import numpy as np
load_path=‘H:/summer/datasets_read/chb01/Seizure/cut/wc/03.mat‘
load_data=sio.loadmat(load_path)
# print(type(load_data))
# print(load_data.keys())
# print(load_data.values())
print(load_data[‘R‘])
Matrix=np.array(load_data[‘R‘])
g = nx.Graph()
for i in range(len(Matrix)):
for j in range(len(Matrix)):
g.add_edge(i,j)
nx.draw(g)
matplotlib.pyplot.show()
Guess What??
Funny ,HA~
标签:int sci val type dataset summer 分享 img matrix
原文地址:https://www.cnblogs.com/Ann21/p/9342007.html