How to get the source directory from command window?
12 次查看(过去 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!