MATLABのコマンドラインで、実行中のMATLABのアプリケーションのパスを得るには?
14 views (last 30 days)
Show older comments
Kazutoshi Ishioka
on 19 Jul 2019
Commented: Kazutoshi Ishioka
on 22 Jul 2019
お世話になります。
現在実行しているMATLABのexeファイルのパスを、文字列で取得したいです。
その様なコマンドや関数はMATLABにありますか?
例えば「C:\Program Files (x86)\MATLAB\R2015b\bin\win32\MATLAB.exe」の様な文字列を取得し
MATLABのワークスペース上の変数に文字列として保存したいです。
ご回答をよろしくお願い致します。
0 Comments
Accepted Answer
Kazuya
on 20 Jul 2019
matlabroot
で
ans =
'C:\Program Files\MATLAB\R2019a'
まで文字列で取れるので、
'\bin\win32\MATLAB.exe'
はマニュアルで追加する、、という方法ではいかがですか?
More Answers (0)
See Also
Categories
Find more on Application Deployment in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!