How to set boundaries between 3 curves and shade the region

조회 수: 5 (최근 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개)

카테고리

Help CenterFile Exchange에서 Fit Postprocessing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by