MATLAB: No FaceAlpha property on the Area class

alpha

Hi, I've been trying to reproduce one of the alpha example of Matlab
x = linspace(0,10);
y1 = 4 + sin(x).*exp(0.1*x);
area(x,y1,'FaceColor','b','FaceAlpha',.3,'EdgeAlpha',.3)
y2 = 4 + cos(x).*exp(0.1*x);
hold on
area(x,y2,'FaceColor','r','FaceAlpha',.3,'EdgeAlpha',.3)
hold off
But got this very strange response
Error using area (line 35)
There is no FaceAlpha property on the Area class.
I have also tested the second example (Create Bar Chart with Transparency) and got the same type of error… I guess there must be something wrong with my computer, I'm using a Ubuntu 14.04 with the 352.79 nvidia driver (open source) and Matlab version 2015a.
If someone has any hint of where my problem could come from, I would be extremely thankful.
Thanks!
seb

Best Answer

The current online documentation is for R2016a, in which 'FaceAlpha' is an Area-class property. I can’t determine when it was added by reviewing the last few years of Release Notes.