You can use the patchline view from File Exchange, in which you can manipulate line objects as if they were patch objects; those. assign them transparency values (alpha).
Here is a sample code using a function:
clc;clear;close all n = 10; x = 1:n; y1 = rand(1,n); y2 = rand(1,n); y3 = rand(1,n); Y = [y1;y2;y3]; linestyles = {'-';'-';'--'}; colors = {'r';'k';'b'}; alphavalues = [.2 .5 .8]; hold on for k = 1:3 patchline(x,Y(k,:),'linestyle',linestyles{k},'edgecolor',colors{k},'linewidth',4,'edgealpha',alphavalues(k)) end
and conclusion:

source share