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 件のコメント

Tiger Zhao
Tiger Zhao 2019 年 1 月 8 日
I use matlab 2018a

サインインしてコメントする。

回答 (1 件)

Steven Lord
Steven Lord 2019 年 1 月 8 日

1 投票

The ArrowPosition property was introduced in release R2018b according to the Release Notes.
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 についてさらに検索

製品

リリース

R2018a

質問済み:

2019 年 1 月 8 日

回答済み:

2019 年 1 月 8 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by