This error occurs when your computer cannot load a certain font display library through MATLAB.
To resolve the issue, please navigate to MATLAB R2017b installation location in your system and remove the “libfreetype.so.6” library file shipped with MATLAB R2017b or later, so that MATLAB will use the system version of that library:
<matlabroot>/bin/glnxa64/ Note: Here <matlabroot> is the location in your system where MATLAB R2017b is installed.
Eg: ‘/usr/local/MATLAB/R2017B’
Following are the commands to execute in linux shell to perform the above mentioned operation: (You may need root privilege)
# cd /usr/local/MATLAB/R2017b (or wherever you may have installed MATLAB)# cd bin/glnxa64# mkdir exclude# mv libfreetype* exclude/