How to set boundaries between 3 curves and shade the region

4 Ansichten (letzte 30 Tage)
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

Akzeptierte Antwort

Image Analyst
Image Analyst am 24 Jul. 2019
Try fill() or patch(). If you can't figure out how to get the region (x,y) boundaries, just ask.
  2 Kommentare
Syahmeer How
Syahmeer How am 24 Jul. 2019
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 am 24 Jul. 2019
Apologies - it's not that the dimension is different but the number of rows and columns for each replicate is different :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by