How to include a command in my main.m?

1 visualizzazione (ultimi 30 giorni)
antlhem
antlhem il 27 Apr 2019
Commentato: Walter Roberson il 28 Apr 2019
I am submiting my matlab files in a server using linux. But I need to run some command lines when the server calls my main.m, how can I include this commands inside the main.m? This commands are: build mex and load('example workspace');
  5 Commenti
antlhem
antlhem il 28 Apr 2019
yea, is not a function of MATLAB is a command (as well as load) to build embedded C code in the matlab project. You can see more details on this at https://uk.mathworks.com/matlabcentral/answers/408136-ho-to-use-a-dynamic-array-in-a-mex-file-function?s_tid=prof_contriblnk
Walter Roberson
Walter Roberson il 28 Apr 2019
The build given in that link is just a bunch of MATLAB code, and can be called from your main function.
It does require that MATLAB Coder be installed on the system it is running on, and perhaps that is the difficulty.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by