How to add different folders while generating standalone exe using mcc command

6 vues (au cours des 30 derniers jours)
jyothi mullapudi
jyothi mullapudi le 5 Sep 2017
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

Réponses (1)

Image Analyst
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.
  1 commentaire
jyothi mullapudi
jyothi mullapudi le 6 Sep 2017
Hi, Thank you for your quick response, Command mcc -m file.m -a . -a ../folder1 -a ../folder3 is applicable only when folder 1 and folder 3 are in same working directory of folder2.
but folder2 is my current working directory and folder1 and folder3 are outside of folder1. How we can use mcc command in this scenario.
Thanks

Connectez-vous pour commenter.

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!

Translated by