Matlab officially supports Apple Silicon.
To use Matlab from Terminal, add to ~/.zshrc like:
History of Matlab on Apple Silicon:
Matlab worked on Apple Silicon via Rosetta since Matlab R2020b. Our Matlab script detects if Matlab is running using Rosetta. Matlab R2022 brought the Apple Silicon beta that runs natively on Apple Silicon for generally better performance.