write p-value into plot

45 ビュー (過去 30 日間)
Nona
Nona 2021 年 10 月 19 日
コメント済み: Nona 2021 年 10 月 20 日
Hi,
I have a plot with two trajectories of each 100 data points and underneath at the bottom of the x-axis a dotted line indicating a significant difference of the two trajectories. Now I would love to also print the exact p-value on top of the dotted line. But I am completely at a loss how to do this. Can someone give me a hint?
I attached a file of the graph that I hae so far. Each red dotted line would have it's own p-value (in this case two p-values).
Thanks!

採用された回答

the cyclist
the cyclist 2021 年 10 月 19 日
You can use the text or annotation functions. The text function is easier, but the annotation function is more powerful.
  1 件のコメント
Nona
Nona 2021 年 10 月 20 日
Thanks, that was easier than expected!

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

その他の回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by