Shading the area between the minimum and maximumlimits of my data
2 次查看(过去 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
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 中查找有关 Dialog Boxes 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!