using mex with variable_name(which contains file name) and with -lname switch
2 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
その他の回答 (1 件)
arun kumar
2015 年 3 月 27 日
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 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!