using mex with variable_name(which contains file name) and with -lname switch
Mostra commenti meno recenti
I want to compile a .c file using mex command. file name is contained in the variable 'file'. To compile this file i have to use
mex(file);
But i also want to use the switch -lname. How to use the switch in this command
Risposta accettata
Più risposte (1)
arun kumar
il 27 Mar 2015
0 voti
check out eval command....then you can do eval('mex(',file,')','-lname'); eval uses the value stored in a variable. i hope this is what you wanted
2 Commenti
Rajalakshmi Rengasamy
il 30 Mar 2015
Jan
il 30 Mar 2015
I strongly recommend to avoid eval. There are better solutions in every case.
Categorie
Scopri di più su MATLAB Compiler in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!