For Matlab, the MathWorks Support Team recommends installing Rosetta by running the line below from Terminal. It solved the issue for me.
sudo /usr/sbin/softwareupdate --install-rosetta
Topic:
App & System Services
SubTopic:
Core OS
Tags: