MATLAB: From a string to function handle of a function handle

anonymous functionfunction handlestr2func

Hi,
Is it possible to transform a string into a function handle calling another function handle?
More specifically, consider the following simple example
func1=@(x)mean(x)
tmp='@(x)func1(x)+3'
we know that defining
func2=str2func(tmp)
does not work.
Is there any way to create a function handle using tmp that will work?
Thanks

Best Answer

func2 = eval(tmp);