MATLAB: Get envelope of multiples curve

curveenvelope

Dear all Any idea about the envelope of 2 or more curves via Matlab; Please see the attached Xls file Thanks

Best Answer

With your data, I would simply use the min and max functions:
d = xlsread('Lila wagou 3_Curves.xlsx');
t = d(:,1);
data = d(:,2:end);
env = [min(data,[],2) max(data,[],2)];
figure(1)
plot(t, data)
hold on
plot(t, env(:,1), '-g', 'LineWidth',2)
plot(t, env(:,2), '-g', 'LineWidth',2)
hold off
grid