How to pass system argument to matlab script?
Afficher commentaires plus anciens
Hello,
I am tyring to pass system argument to my script and it's not working my script is like :
path_of_simulink_model = x;
disp(path_of_simulink_model)
cd path_of_simulink_model
pwd
and in CMD i am passing argument like this :
>matlab -r "x ='E:\Project_Workspace\SVN_Tagging'"code_generation_testing
but it's not working.Can any body tell me how to pass system argument(and file path as argument) in matlab script?
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 18 Sep 2018
cd(path_of_simulink_model)
Catégories
En savoir plus sur Programming dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!