Why aren't my dashed lines working?

I'm trying to make dashed ylines but they seem to not be working.
yline(v_downwash_412,'r','Bell412','--')
Gives the error
"Error using yline (line 35)
Unrecognized property Bell412 for class ConstantLine.
Error in Downwash (line 64)
yline(v_downwash_412,'r','Bell412','--')"
Help

1 件のコメント

Dan Giffin
Dan Giffin 2023 年 6 月 14 日
It only doesn't work when I have '--' if I take that out it's fine

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

 採用された回答

lazymatlab
lazymatlab 2023 年 6 月 14 日

0 投票

If 'Bell412' is the label of ConstantLine, you should write the line specifiers before the label.
yline(1,'r--','Bell412')

1 件のコメント

Dan Giffin
Dan Giffin 2023 年 6 月 14 日
Much appreciated, thanks a lot!!

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

タグ

質問済み:

2023 年 6 月 14 日

コメント済み:

2023 年 6 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by