using mex with variable_name(which contains file name) and with -lname switch
이전 댓글 표시
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
채택된 답변
추가 답변 (1개)
arun kumar
2015년 3월 27일
0 개 추천
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
Rajalakshmi Rengasamy
2015년 3월 30일
Jan
2015년 3월 30일
I strongly recommend to avoid eval. There are better solutions in every case.
카테고리
도움말 센터 및 File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!