23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

conv2<br />

2-328<br />

A(3:7,3:7) = ones(5);<br />

H = conv2(A,s);<br />

mesh(H)<br />

4<br />

2<br />

0<br />

−2<br />

−4<br />

15<br />

10<br />

Transposing the filter s extracts the vertical edges of A.<br />

V = conv2(A,s');<br />

figure, mesh(V)<br />

5<br />

0<br />

0<br />

5<br />

10<br />

15

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!