フィルターのクリア

How to use duration data in the x axis of a patch graph?

20 ビュー (過去 30 日間)
Pietro Fedrizzi
Pietro Fedrizzi 2021 年 10 月 23 日
コメント済み: Star Strider 2021 年 10 月 25 日
I have to realize a "timeline" patch graph. Even though the vectors X and Y that I use in the patch function have the same dimensions, it says that "vectors must be the same length". I think it's because in my case I use for X, duration type data.
Any suggestions on how to handle duration data in a patch graph?

採用された回答

Star Strider
Star Strider 2021 年 10 月 23 日
Post the code and post the MATLAB version you are using. Only in the last 2 releases (that I am aware of) has patch supported datetime or duration arrays.
If I remember correctly, fill always has, so that may be a work-around.
.
  10 件のコメント
Pietro Fedrizzi
Pietro Fedrizzi 2021 年 10 月 25 日
Got it!
Thanks again Sir for you time and your help!
Star Strider
Star Strider 2021 年 10 月 25 日
As always, my pleasure!
.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by