import matplotlib.pyplot as plt
import networkx as nx
G = nx.star_graph(30)
pos = nx.spring_layout(G)
colors = range(30)
nx.draw(G, pos, node_color=’#A0CBE5’, edge_color=colors,
width=4, edge_cmap=plt.cm.Set2, with_labels=True)
plt.show()
nx.draw(G, pos, node_color=’#A0CBE5’, edge_color=colors,
width=4, edge_cmap=plt.cm.Set2, with_labels=True)
nx.draw(G, pos, node_color=’#A0CBE5’, edge_color=colors,
width=4, edge_cmap=plt.cm.Set2, with_labels=True)
nx.draw(G, pos, node_color=’#A0CBE5’, edge_color=colors,
width=4, edge_cmap=plt.cm.Set2_r, with_labels=True)
x=(0.01:0.1:10.01)’;
p1=ncfpdf(x,5,20,10);
p=fpdf(x,5,20);
plot(x,p,’-’,x,p1,’:’)
x=(0.01:0.1:10.01)’;
p1=ncfcdf(x,5,20,10);
p=fpdf(x,5,20);
plot(x,p,’-’,x,p1,’:’)
x=(0.01:0.1:10.01)’;
p1=ncfinv(x,5,20,10);
p=fpdf(x,5,20);
plot(x,p,’-’,x,p1,’:’)
x=(0.01:0.1:10.01)’;
p1=ncfrnd(x,5,10);
p=fpdf(x,5,20);
plot(x,p,’-’,x,p1,’:’)
x=(0.01:0.1:10.01)’;
p1=ncfstat(x,10,20);
p=fpdf(x,10,18);
plot(x,p,’-’,x,p1,’:’)
张德丰编著—MATLAB概率与数据统计分析—67页—【M】北京:机械工业出版社