Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
conv2(..) fault ???

Subject: conv2(..) fault ???

From: Le Tuan

Date: 12 Mar, 2012 06:37:10

Message: 1 of 1

I write:
I=[-5 5 0 5;
     5 5 0 0;
     0 5 0 5;
     5 5 5 5]

h=[-1 -1 -1;
       0 0 0;
       1 1 1]

c=conv2(I,h,'valid')

and output of c is:
-5 0
-5 -10
c(1,2), c(2,1), c(2,2) is right results. But why c(1,1)=-5, I think it must be 5 ???

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us