I have a function_1 that returns value and from function_2, I want to get the value of function_1 to use it I tried :
function ret = getValue(arg)
ret = find(arg,'toto');
end
function selectValue(arg,val)
f = @getValue(arg);
switch val
case 'tata'
f.select(1)
case 'titi'
f.select(0);
end
end
but I got error when trying to do f.select(1) in general, if I want to use the value of returned function in another one how do could I proceed ? could someone help ?
thanks,