How to set boundaries between 3 curves and shade the region

4 ビュー (過去 30 日間)
Syahmeer How
Syahmeer How 2019 年 7 月 24 日
コメント済み: Syahmeer How 2019 年 7 月 24 日
Hello all,
I have a cumulative distribution curve which have different x and y values however I would like to put all of them in the same plot. Each curve is a replicate of a single experimental trial.
Here I have 3 curves (the replicates) of my data. I would like to set a boundary/shade the region to sort of show the range of all the replicates for my trial.
Any help will be greatly appreciated. :0
Example of all 3 replicates plotted:
Capture.PNG

採用された回答

Image Analyst
Image Analyst 2019 年 7 月 24 日
Try fill() or patch(). If you can't figure out how to get the region (x,y) boundaries, just ask.
  2 件のコメント
Syahmeer How
Syahmeer How 2019 年 7 月 24 日
Hi Image analyst,
I tried using the fill() approach from one of your comments but it doesn't seem to work because of the dimension of all 3 arrays that I have are not the same. E.g. curve 1 (x and y values) to curve 2 (x and y values are different).
I can't figure out how to get the region (x,y) boundaries as well if you don't mind sharing that with me as well.
Here's a snippet of the code I added for the fill() approach.
Thanks in advance!
Syahmeer How
Syahmeer How 2019 年 7 月 24 日
Apologies - it's not that the dimension is different but the number of rows and columns for each replicate is different :)

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by