I have a model that utilises .slx and .m files and is packaged in a .mlapp application. The simplified version of the model is as follows:
assignin("base", "Power", Power);
assignin("base", "Power1", Power1);
assignin("base", "Power2", Power2);
The model runs correctly within the MATLAB App. It also functions as expected when an installation file (.mlappinstall) is created in "create an app installation file to share your app with MATLAB users" using the App Designer.
However, in Standalone Desktop App mode, the application compiles without errors and opens successfully but does not execute, and no feedback is provided regarding the failure to run.