How to get the source directory from command window?
4 ビュー (過去 30 日間)
古いコメントを表示
Hello friends,
I have one simulink model opened in my matlab. I know the source directory of that model (.mdl file) and it is different than my current directory. (This is I manually changed). Now I want to know the path of that source directory from command window. Do you know how to get path of source directory.
on More information, we can see the reuired path into
'File' Menu >> Model Properties >> 'Main' Tab >> 'Source File'
How to get it? Please help me..
Thanks in advance..
0 件のコメント
採用された回答
その他の回答 (2 件)
Azzi Abdelmalek
2013 年 2 月 24 日
編集済み: Azzi Abdelmalek
2013 年 2 月 24 日
[filename,path]=uigetfile('*.mdl') % path is your file location
file=fullfile(path,filename)
Kaustubha Govind
2013 年 2 月 25 日
You can just run :
which <modelname>
To find the location of the model. Is this what you want?
参考
カテゴリ
Help Center および File Exchange で Verification, Validation, and Test についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!