How to get the source directory from command window?
조회 수: 11 (최근 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!