How to include a command in my main.m?

조회 수: 2 (최근 30일)
antlhem
antlhem 2019년 4월 27일
댓글: Walter Roberson 2019년 4월 28일
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
antlhem
antlhem 2019년 4월 28일
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 2019년 4월 28일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by