to highlight median value on the plot.
古いコメントを表示
hello ,
i have plotted a graph using
cdfplot(z)
now i need to indicate median as a line on graph as shown below

here i need the red lines shown above.
one i need at y-axis = 0.5 and one at Y-axis = 0.9.
i also want to display the corresponsing x value their.
thank you in advance
回答 (1 件)
KSSV
2020 年 6 月 11 日
0 投票
You can get the corresponding points and use plot to draw a line.
To show up the text, you can use the function text.
5 件のコメント
Sajid Afaque
2020 年 6 月 11 日
KSSV
2020 年 6 月 11 日
Use the inequality and get the index of y to find x.
Sajid Afaque
2020 年 6 月 11 日
KSSV
2020 年 6 月 11 日
h = cdfplot(z);
h should have data points.
Sajid Afaque
2020 年 6 月 11 日
カテゴリ
ヘルプ センター および File Exchange で 2-D and 3-D Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
