필터 지우기
필터 지우기

basic code question

조회 수: 2 (최근 30일)
John
John 2012년 3월 22일
Hello
What does the '@' symbol do in this equation?
Is the first (z) multiplied the e^(...)?
thank you
% Gaussian kernel function
kerf=@(z)exp(-z.*z/2)/sqrt(2*pi);

채택된 답변

Matt Kindig
Matt Kindig 2012년 3월 22일
It is a function handle. It means that you are defining an anonymous function 'kerf' that takes z as an input. The actual equation is just
exp(-z.*z/2)/sqrt(2*pi)
The User Guide has a pretty good write-up about these. Search "anonymous function" in the Help.

추가 답변 (1개)

Wayne King
Wayne King 2012년 3월 22일
That is a function handle.
  댓글 수: 1
John
John 2012년 3월 22일
Thank you

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by