How to add different folders while generating standalone exe using mcc command
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
I am using MATLAB2013b, I want to generate standalone exe using mcc command.
Let us assume I have folder structure below:
folder1
folder2
folder3
folder2 is having my main file.m. Generally using mcc command would be,
mcc -m folder\file.m
and I have tried another command to include folder
mcc -m folder\file.m -a .\folder2
but I want to add all the above mentioned folders (1,2, and 3) while generating the exe, so I have added all the folders to mcc command and am getting "path not found" errors.
mcc -m folder\file.m -a .\folder2, -a.\folder3
Can you please suggest the command to generate an exe using the mcc command with all the folders and subfolders?
Thanks
0 commentaires
Réponses (1)
Image Analyst
le 5 Sep 2017
Genrally the command would not be
mcc -m folder\file.m
because your file is in folder2, NOT folder, according to you. So you should have folder 2 be the current folder and then say
mcc -m file.m -a *.* -a ../folder1 -a ../folder3
This should include all the files in the current folder (folder2), then all the files in folder1 and folder3. I use the .. to go up a level to the parent folder where all 3 folders reside. You used a single dot which meant that folder1 was a subfolder of the current folder, and if you were in folder2 (where your .m file is), that would give the file not found error because folder1 is not a subfolder of folder2.
Voir également
Catégories
En savoir plus sur Application Deployment dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!