Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

what is the description of the line myFilterHandle = @myFilter;

Asked by pammy on 24 Jan 2013

myFilterHandle = @myFilter;

blockyImage = blockproc(grayImage,[windowSize windowSize], myFilterHandle);

tell me the description of this code.....

1 Comment

pammy on 25 Jan 2013

i did get what u said n thank u sir....

pammy

Products

No products are associated with this question.

1 Answer

Answer by Wayne King on 24 Jan 2013
Accepted answer

The @ notation is for an anonymous function. It's a handle for a function

presumably this function myFilter is defined somewhere on your path or previously in the command window.

For example:

f = @(x) x^2;  
f(2)

f(2) returns 4 here.

In your example you are taking the image in grayImage and using the function myFilter() to operate on blocks of that image with dimension [windowSize windowSize]

0 Comments

Wayne King

Contact us