Anybody knows how can i optimize this? Thanks <3!
function filter() r=[cos(c) -sin(c); sin(c) cos(c)]; for i = 1 : n2 for j = 1 : n1 h(i,j) = magic(r(1),std)*magic(r(2),std); endend function y = magic(r,s) y = exp(-r^2));
Best Answer