Filter löschen
Filter löschen

Passing variable insteaded of a hardcoded name to mcc

2 Ansichten (letzte 30 Tage)
Ali
Ali am 8 Feb. 2012
Bearbeitet: Cedric am 4 Okt. 2013
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?

Akzeptierte Antwort

Friedrich
Friedrich am 8 Feb. 2012
Hi,
try the function signature call of mcc
mcc('-m',func_name)

Weitere Antworten (0)

Kategorien

Mehr zu Standalone Applications finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by