What is the @ operator in MATLAB?

Yin Zhu picture Yin Zhu · Jan 20, 2010 · Viewed 22.3k times · Source

I've only used MATLAB 6.5 before. I got some programs that is using '@'. Can someone tell me what is it?

By the way, does MATLAB 6.5 support this operator?

Answer

user85109 picture user85109 · Jan 20, 2010

The @ operator creates a function handle, something that allows you to easily create and pass around a function call like a variable. It has many nice features, none of which are available to you unfortunately. This is because as you suspect, it was not introduced into matlab until version 7, the release immediately after yours.