I assume you are using R2020a or later.
The issue you mentioned happens if you select the APPS section in MATLAB.
The issue can be resolved if you select APPS section from Simulink.
For that run the below command
It opens a simulink window. Create a new model and select APPS section from there.
Hope it helps