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.

Réponses (1)

Steven Lord
Steven Lord le 8 Jan 2019

1 vote

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.

Catégories

En savoir plus sur Graph and Network Algorithms dans Centre d'aide et File Exchange

Produits

Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by