필터 지우기
필터 지우기

writing a formula in matlab

조회 수: 2 (최근 30일)
John
John 2012년 3월 22일
Hello,
I'm trying to write a function in matlab.
I have an example:
A gaussian kernel is
% Gaussian kernel function
%kerf=@(z)exp(-z.*z/2)/sqrt(2*pi);
How would you code an epanechnikov kernel?
I have the equation for both here? http://dl.dropbox.com/u/54057365/All/kernel1.JPG
How would you deal with the absolute value of t being less than or equal to 1?
Thank for your help
John

채택된 답변

the cyclist
the cyclist 2012년 3월 22일
kerf=@(z) (3/4)*(1-z.^2).*(abs(z)<=1)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by