2 bugs in draw digraph
显示 更早的评论
2 bugs in draw digraph
In
It is said we could set ArrowPosition — Position of arrow along edge and ArrowSize — Arrow size to vector of positive values.
However, I can't. For example:
a=[0,2,3;0,0,0;0,0,0];
G=digraph(a);
plot(G,'ArrowPosition',1,'ArrowSize',[2,3]')
How could I change the ArrowPosition?
And how could I set ArrowSize to a vector? Please help me.
回答(1 个)
Steven Lord
2019-1-8
1 个投票
The documentation for the ArrowSize property in the online documentation (which is for the most recent release, currently release R2018b) says that ArrowSize can be a vector but the documentation for that property in release R2018a says it is a scalar. I checked in both those releases and R2018a does limit it to being a scalar while R2018b allows it to be a vector.
So neither of these are bugs. The online documentation, which is for a newer release than you're using, describes functionality introduced in that newer release.
类别
在 帮助中心 和 File Exchange 中查找有关 Graph and Network Algorithms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!