How to get the source directory from command window?
Afficher commentaires plus anciens
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..
Réponse acceptée
Plus de réponses (2)
Azzi Abdelmalek
le 24 Fév 2013
Modifié(e) : Azzi Abdelmalek
le 24 Fév 2013
[filename,path]=uigetfile('*.mdl') % path is your file location
file=fullfile(path,filename)
1 commentaire
Shameer Parmar
le 24 Fév 2013
Kaustubha Govind
le 25 Fév 2013
You can just run :
which <modelname>
To find the location of the model. Is this what you want?
1 commentaire
Shameer Parmar
le 25 Fév 2013
Catégories
En savoir plus sur Simulink Environment Customization dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!