using mex with variable_name(which contains file name) and with -lname switch
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Rajalakshmi Rengasamy
il 27 Mar 2015
Commentato: Rajalakshmi Rengasamy
il 2 Apr 2015
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
0 Commenti
Più risposte (1)
arun kumar
il 27 Mar 2015
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
Vedere anche
Categorie
Scopri di più su Write C Functions Callable from MATLAB (MEX Files) in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!