tags:

views:

212

answers:

3

I've only used matlab 6.5 before. I got some programs that is using '@'.

Can someone tell me what is it. BTW, does matlab 6.5 support this operator.

Thanks.

+2  A: 

Documentation says that it's a function handle.

Anton Gogolev
+4  A: 

It used to declare Anonymous Functions in Matlab.

I think the terms is "Function Handle".

Practically it covers the inability of Matlab to declare a function at any place in any M file.

You may see it here: http://stackoverflow.com/questions/132092/what-are-your-favourite-matlab-octave-programming-tricks/382370#382370

I found t to be useful in Image Processing along with the "blockproc" command.

Drazick
Actually, it is called a function handle (not handler) using similar naming convention as graphics objects also have 'handles'.
MatlabDoug
Fixed it, Thanks.
Drazick
+4  A: 

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.

woodchips

related questions