MATLAB Answers

0

How to set boundaries between 3 curves and shade the region

Asked by Syahmeer How on 24 Jul 2019
Latest activity Commented on by Syahmeer How on 24 Jul 2019
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

  0 Comments

Sign in to comment.

1 Answer

Answer by Image Analyst
on 24 Jul 2019

Try fill() or patch(). If you can't figure out how to get the region (x,y) boundaries, just ask.

  2 Comments

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!
Apologies - it's not that the dimension is different but the number of rows and columns for each replicate is different :)

Sign in to comment.