cd to (matlabroot)/sys/os/glnxa64/
Rename libstdc++.so.6 to backuplibstdc++.so.6
Rename libstdc++.so.6.0.10 to backuplibstdc++.so.6.0.10
Restart MATLAB and execute the code again.
It might also be necessary to install some extra codecs, but this may not be essential:
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install gstreamer0.10-ffmpeg