32-bit installation error-message on 64bit MacOs Matlab

Probably they installed R2023b for native Apple Silicon (ARM architecture), which right now is not supported by PTB. Getting Matlab for Intel Macs and running in Rosetta2 emulation might work ok’ish enough for a teaching course, as opposed to real data collection. From Mathworks website:

" Is there a Universal macOS Binary available for MATLAB?

No. MATLAB for Intel Macs and MATLAB for Apple silicon Macs are separate applications. To run MATLAB in Rosetta 2 on an Apple silicon Mac, download and install MATLAB for Intel Macs."