do_gaussian1d.m

Do_gaussian1d.m - width out(sz 1:sz width = in flip the edges for i=1:sz out(i = out(2*sz-i 2 out(2*sz width 1-i = out(width i-1 end out =

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 function out = do_gaussian1d(in, del) global g [dummy width] = size(in) sz = floor(del*2.5) g = [-sz:sz] g = exp(-g.^2/del^2) g = g/sum(g) out = zeros(1,2*sz +
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: width) out(sz+1:sz+width) = in % flip the edges for i=1:sz out(i) = out(2*sz-i+2) out(2*sz+width+1-i) = out(width+i-1) end out = filter2(g, out, 'valid') Page 1...
View Full Document

This note was uploaded on 04/20/2008 for the course ENGR 190 taught by Professor Staff during the Spring '08 term at Santa Clara.

Page1 / 2

Do_gaussian1d.m - width out(sz 1:sz width = in flip the edges for i=1:sz out(i = out(2*sz-i 2 out(2*sz width 1-i = out(width i-1 end out =

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online