Shading the area between the minimum and maximumlimits of my data
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi all,
Please I need someone to help me shade the minimum and maximum limits of my data.
I tried this code but it didn't work
load('Data1.mat')
T=Data1
T=[aa v Vn Vx]
figure
hold all
%plot(T(:,1),T(:,2),'.-r'); % median
%plot(T(:,1),T(:,3),'.-g'); % min
%plot(T(:,1),T(:,4),'.-k'); %max
x2 = [T(:,1), fliplr(T(:,1))];
idx = [T(:, 4), fliplr(T(:,3))];
fill(x2, inBetween, 'g');
Thank you.
KB
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/931354/image.png)
댓글 수: 0
채택된 답변
Simon Chan
2022년 3월 18일
flip up down instead of flip left right since they are column vector.
load('Data1.mat')
x2 = [T(:,1); flipud(T(:,1))];
idx = [T(:, 4); flipud(T(:,3))];
fill(x2, idx, 'g');
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Environmental Engineering에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!