I did not succeed in using the macrovar primitve, however, using who_user
gives me an ordered list of my variables from which it is easy to extract
the right strings.
Thank you for your help.
Pierre
--
View this message in context:
Hello,
I would like to know if there exists a way to get the name of function's
inputs arguments, i.e., if I have the following function
function y = f(a,b)
..
endfunction
and that I call it like y = f(var1,var2), is it possible to know, inside my
function f, that the first input argument a is
you cannot.
But you can provide the function directly with the name of your
variable, and transform te name of the variable into the variable by
evaluating it...
function f(nameofvar1,nameofvar2)
var1 = evstr(nameofvar1)
var2 = evstr(nameofvar2)
disp(nameofvar1 + + +
You can do it with the macrovar primitive.
S.
Le 29/05/13 22:56, Adrien Vogt-Schilb a écrit :
you cannot.
But you can provide the function directly with the name of your
variable, and transform te name of the variable into the variable by
evaluating it...
function