title: Change line transparency in matlab
body: <p>I am new to matlab and trying to plot some regression lines but make them transparent. I read here:<a href="https://uk.mathworks.com/matlabcentral/answers/44442-change-opacity-of-lines" rel="nofollow noreferrer">https://uk.mathworks.com/matlabcentral/answers/44442-change-opacity-of-lines</a> that it should be possible to do this by specifying the alpha as the final value in the colour, however, this does not change anything for me. Any ideas how I can make my lines transparent? I am running version R2021a.</p>
  <p><code>plot(MC_age(:,i),f(i,:),'LineWidth',0.1,&quot;Color&quot;, [0.4, 0.4, 0.4, 0.8])</code></p>
  <p>Thanks</p>