If your Matlab is struggling to find the right libstdc++.so.6 you can try the following:

  1. locate libstdc++.so.6
    • $ locate libstdc++.so.6
  2. It can be located in:
/usr/lib/i386-linux-gnu/libstdc++.so.6
/usr/lib/x86_64-linux-gnu/libstdc++.so.6

3. Once you’ve found it you can run matlab with the following command (changing the libstdc++.so.6 according to your specific location):

LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libstdc++.so.6" matlab