Is it possible to have an .exe file which works as a function with inputs and outputs inside MATLAB environment, like a c++ .exe or a MATLAB app?
조회 수: 3 (최근 30일)
이전 댓글 표시
I want to create an app which has a function of the code in a .exe file.
I know a c++ .exe file can transfer inputs and outputs through .txt files, yet MATLAB read/write for .txt is somewhat time consuming. I could use a c++ mex function, yet the mex file will only work for the same platform where it was generated. I wonder if there would be something similar to a mex file, like a matlab compiles app, which is non editable, or even encripted, which could be used as part of a MATLAB function.
댓글 수: 0
답변 (1개)
Walter Roberson
2022년 5월 24일
편집: Walter Roberson
2022년 5월 24일
You could use .Net System.Diagnostics.Process to start a process and do i/o redirection of input and output. Most commonly something like that would use text in the i/o streams, but it is valid to use binary instead.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!