No constructor 'Stateflow.Annotation' with matching signature found

2 ビュー (過去 30 日間)
ml222
ml222 2021 年 9 月 16 日
回答済み: Walter Roberson 2021 年 9 月 16 日
Hi, i get the following error with the following snippet (same if I try with Note()):
sfnew
rt = sfroot;
c = rt.find('-isa','Stateflow.Chart');
a = Stateflow.Annotation(c);
a.Interpretation = 'RICH';
a.Text = '<html><body><a href="www.mathworks.com">try this</a></body></html>'
No constructor 'Stateflow.Annotation' with matching signature found.
Whats the problem here? Happens in 2017b and 2018a

回答 (1 件)

Walter Roberson
Walter Roberson 2021 年 9 月 16 日
I confirm that the statement does not work in R2017b, which is the first release that has a documentation page for it.
The R2017a documentation stays that the feature was introduced before R2006a, but searching R2017a shows no such page, so that seems to be wrong.
I do not currently have R2018a installed to check whether the code works there.
I think it's a bug that it was documented... or a bug that it somehow got omitted.

カテゴリ

Help Center および File ExchangeComplex Logic についてさらに検索

タグ

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by