I test with Matlab R2016b
1- install wmname
sudo install wmname
2- Now you should change the window manager name to LG3D. Before executing matlab, run:
"wmname LG3D".
3-run matlab
bash "/usr/local/MATLAB/R2016b/bin/matlab".
4-Close matlab.
5-"export LD_PRELOAD=/usr/lib64/libstdc++.so.6"
5-"run Matlab"
6-Finally it's ok