フィルターのクリア

Passing variable insteaded of a hardcoded name to mcc

2 ビュー (過去 30 日間)
Ali
Ali 2012 年 2 月 8 日
編集済み: Cedric 2013 年 10 月 4 日
I try to pass a variable as argument to mcc as below:
func_name= 'addtwo';
mcc -m func_name
But I get this error when run it:
------------------------------------
Depfun error: 'Unable to locate func_name as a function on the MATLAB path'
??? Error using ==> mcc
Error executing mcc, return status = 1 (0x1).
-------------------------------------
When I change the command to "mcc -m addtwo" it's working perfectly fine.
Any idea how to pass a varibale to mcc instead of a hard coded name?

採用された回答

Friedrich
Friedrich 2012 年 2 月 8 日
Hi,
try the function signature call of mcc
mcc('-m',func_name)
  1 件のコメント
Ali
Ali 2012 年 2 月 8 日
Thanks very much!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeParallel Computing Fundamentals についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by