Plotting two networks in the same layer using "graph"
显示 更早的评论
Hi Everyone,
I'd like to plot the following set of networks in which Network 1 and 2 are represented by blue and red connections respectively. Each network has it's own Adjecency matrix (A1 and A2). Ive tried using the following code. However, this seems to plot the networks separately(looks like it's double-layered) and not interconnected. I'd like to have a single layer with the edges being color coded as shown in the image below. Any help is greatly appreciated. Thank you in advance
G1 = graph(A1)
G2 = graph(A2)
figure(1)
plot(G1)
hold on
plot(G2)
hold off

采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!