Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Dynamically choosing files in a deployed application
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello, thanks for the assistance.
I am working on a large MATLAB application, that will be compiled and deployed to some of our users.
One aspect of this program allows the user to select a certain type of a .m file that was written according to one of our templates, and the program will plot the data inside of it and allow the user to look at the raw data inside of MATLAB.
To achieve this functionality, I have written an interface that will send the .m file, and all the other parameters and data, from the deployed application (no MATLAB license) to an instance of MATLAB (using a concurrent license).
Because these user-written .m files are not compiled, and can be in any location, I am not sure how to point to them with my compiled application. (I am aware that a compiled application can't run uncompiled files, which is why the interface was written). When testing this on an uncompiled version of the program, I am able to use addpath() to add these files to the MATLAB path, which is not possible on a compiled version.
Any help or idea would be appreciated.
댓글 수: 0
답변 (1개)
Jan
2017년 7월 20일
You can use absolute path names to address the files. This is trivial, actually, therefore I'm not sure if I understand your question.
What is "a certain type of m file"? Do you create m-files dynamically to store data? This would be a very bad idea. Use binary or text files to store data, but not some pseudo-code. Then there would be no need to access a Matlab instance, because the data can be processed in the deployed compiled code.
댓글 수: 1
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!