I am using MATLAB Compiler 4.11 (R2009b) to create a standalone application from my MATLAB function "myfun.m" using the following command:
mcc -m -v myfun.m -d 'C:\work\myDir'
However, I receive the following error message:
??? Error using ==> mcc The output directory, 'C:\work\myDir' does not exist.
I would like the MCC command to create the output directory if it currently does not exist instead of generating this error message. This is would be very useful for me because my workflow requires me to compile the standalone application at the end of every day incorporating any changes made to my function and place the output in a folder whose name contains a datestamp.
This would also be a good feature to have when compiling project files created using DEPLOYTOOL using the following command:
mcc -F myApp.prj
Currently, I have to manually create the "src" and "distrib" directories to ensure that there is no error.
Best Answer