using mex with variable_name(which contains file name) and with -lname switch
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Rajalakshmi Rengasamy
el 27 de Mzo. de 2015
Comentada: Rajalakshmi Rengasamy
el 2 de Abr. de 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 comentarios
Respuesta aceptada
Más respuestas (1)
arun kumar
el 27 de Mzo. de 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 comentarios
Jan
el 30 de Mzo. de 2015
I strongly recommend to avoid eval. There are better solutions in every case.
Ver también
Categorías
Más información sobre MATLAB Compiler en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!