Is there a way to use a compiled MATLAB program (with MCR) in command line mode?
조회 수: 5 (최근 30일)
이전 댓글 표시
I want to code a software with a core and a user interface. The use should be able to run the core as it is from a sort of virtual command line or by using the user interface. Is there a way to achieve this? I'm asking because I noticed that users cannot "interact" a lot with compiler MATLAB code, for instance only *.mat files can be loaded into a compiled program and a few other things.
댓글 수: 0
답변 (1개)
Walter Roberson
2016년 5월 30일
Yes, compile it as a Console Application and do not use any graphics. You can use input() to get user input.
댓글 수: 2
Walter Roberson
2016년 5월 31일
That is, all command line arguments will be converted into string arguments to the function you indicated should be compiled. That function will need to recognize that strings have been passed and do appropriate operations (including possibly converting some to numeric values.)
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!