필터 지우기
필터 지우기

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)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Standalone Applications에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by