MATLABのコマンドラインで、実行中のMATLABのアプリケーションのパスを得るには?
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Kazutoshi Ishioka
le 19 Juil 2019
Commenté : Kazutoshi Ishioka
le 22 Juil 2019
お世話になります。
現在実行しているMATLABのexeファイルのパスを、文字列で取得したいです。
その様なコマンドや関数はMATLABにありますか?
例えば「C:\Program Files (x86)\MATLAB\R2015b\bin\win32\MATLAB.exe」の様な文字列を取得し
MATLABのワークスペース上の変数に文字列として保存したいです。
ご回答をよろしくお願い致します。
0 commentaires
Réponse acceptée
Kazuya
le 20 Juil 2019
matlabroot
で
ans =
'C:\Program Files\MATLAB\R2019a'
まで文字列で取れるので、
'\bin\win32\MATLAB.exe'
はマニュアルで追加する、、という方法ではいかがですか?
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur ファイルの操作 dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!