What does '@' mean in a matlab expression?

31 views (last 30 days)
For example [x,y] = foo1(@(x) foo2(x),z);
Thank you in advance for your help.

Accepted Answer

Sean de Wolski
Sean de Wolski on 23 Jan 2012
It means your are referencing a function handle or creating an anonymous function.
doc function_handle
and

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!