image thumbnail

mexme - write MEX files in no time

by

 

30 Apr 2011 (Updated )

writes fully valid MEX .cpp files including mexFunction boilerplate based on numeric C/C++ snippet

myrecursivefilter(x,alpha)
function [y] = myrecursivefilter(x,alpha)
    y = zeros(size(x));
    y(1) = x(1)*alpha;
    for ii = 2:length(x)
        y(ii) = y(ii-1)*(1-alpha) + x(ii)*alpha;
    end
end

Contact us