MATLABのコマン​ドラインで、実行中の​MATLABのアプリ​ケーションのパスを得​るには?

14 views (last 30 days)
Kazutoshi Ishioka
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のワークスペース上の変数に文字列として保存したいです。
ご回答をよろしくお願い致します。

Accepted Answer

Kazuya
Kazuya on 20 Jul 2019
matlabroot
ans =
'C:\Program Files\MATLAB\R2019a'
まで文字列で取れるので、
'\bin\win32\MATLAB.exe'
はマニュアルで追加する、、という方法ではいかがですか?
  1 Comment
Kazutoshi Ishioka
Kazutoshi Ishioka on 22 Jul 2019
ご回答ありがとうございます。
参考になりました。

Sign in to comment.

More Answers (0)

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!