Calling an external software from MATLAB
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi All,
I am using Linux-mint 18. I want to call external software from MATLAB. Here is what I have done so far but it is not working.
Let's say the name of my software is "my_software". It is located in "/home/hs/my_software" folder. If I want to open it using the terminal, I do "/home/hs/my_software/bin/my_software" and I can open using terminal. I have also created alias for it in .bashrc file. So if I just type in terminal "my_software", it opens the software.
However when I do in MATLAB "system('my_software')" it gives me the error "/bin/bash: my_software:command not found". If I do "system('/home/hs/my_software/bin/my_software')" then it works i.e. it open the software successfully using MATLAB.
May I ask that what I have to do so that my alias also works in MATLAB like in terminal i.e. if I do "system('my_software')" it successfully opens?
댓글 수: 0
채택된 답변
Ammar Dodin
2016년 8월 3일
편집: Ammar Dodin
2016년 8월 3일
I think this is what you're looking for. https://www.mathworks.com/matlabcentral/answers/94199-can-i-use-aliases-when-using-the-and-system-commands-from-within-matlab%20
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File 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!