output - Setting name and path of mex file in MATLAB script -


i want control path , resulting file name of mex file.

this how build command looks @ moment:

sourcefilepath = [tempname,'.cpp']; libdir = ['-l' libdir];  libname = ['-l' libname]; headerdir = ['-i' headerdir];  mex(headerdir,libdir,sourcefilepath,libname); 

this works fine. want use custom mex file name , custom path.

i saw in official docu there options -outdir , -output. tried @ in similar way:

outputdir = ['-outdir ' tempdir];  mex(headerdir,libdir,sourcefilepath,libname,outputdir); 

i tried without space. error:

error using mex unknown mex argument '-outdir c:\users\selmao~1\appdata\local\temp\'.

same problems appear when try use -output option.

any ideas? in advance!

strange.

if set option inline works. if set it, before, whole variable not.

mex(headerdir,libdir,sourcefilepath,libname,'-outdir',tempname); 

this might others.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -