?? connectivity.m
字號:
function connectivity(node_coord, routing_table, dests)%visualize the connectivity of routing path to all the destinationsif size(dests,1)~=1 | size(node_coord,2)~=2 error('wrong format in dests or node_coord');endn = size(node_coord,1);hold onfor dest=dests reachable = find(routing_table(:,dest)); for i=reachable' j = routing_table(i,dest); plot([node_coord(i,1) node_coord(j,1)], [node_coord(i,2), node_coord(j,2)]); endend
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -