How to compile matlab app for target without matlab runtime

I made an app in App Designer, my app uses relative paths and external .txt files, so in order to compile my app I used mcc, because in Application Compiler I cannot include db/ directory:
mcc -e app1.mlapp -a db
But this .exe app doesn't work on target without matlab runtime, how do I compile my app and make it work on target ?

Answers (1)

You don't. When you use MATLAB Compiler, the target system must always have the MATLAB Runtime; the only choice is whether to bundle the runtime as part of the executable or not.
If MATLAB Runtime is not an option then you must use MATLAB Coder -- which cannot handle any graphics.

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products

Release

R2020a

Asked:

on 28 Apr 2023

Answered:

on 28 Apr 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!