How can i draw 95% CI plot? , is it good?
조회 수: 1 (최근 30일)
이전 댓글 표시
x = 0:1:3000;
y = suscep_data_ave;
y = y';
xconf = [x x(end:-1:1)] ;
yconf = [y+0.195 y(end:-1:1)-0.195];
figure
p = fill(xconf,yconf,'blue');
p.FaceColor = [0.2 0.8 0.8];
p.EdgeColor = 'none';
hold on
plot(x,y,'r*')
hold off
I want to draw plot ..as follow..
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/565731/image.png)
so,, is it perfect code? plz help me
댓글 수: 2
Star Strider
2021년 3월 30일
The ‘data.mat’ file contains a (3000x1) vector. It is not possible to calculate confidence limits from it, and no other vectors or data are included in the file.
답변 (1개)
Pratheek Punchathody
2021년 3월 31일
The above query is already been answered in the community. Please refer to this "Link" for the answer in the community.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!