Tags: built, conv, driving, facing, function, honeestly, matlab, programming

About function conv

On Programmer » Matlab

1,602 words with 1 Comments; publish: Tue, 29 Apr 2008 16:35:00 GMT; (20031.25, « »)

Hello all,

I am facing a problem, it seems to be simple but honeestly it's

driving me crazy !

Im using matlab's built in function 'conv', to convolute 2 vectors

both of size 1*439 with double values. As it says in the help, this

function return a vector containing the convlved output. So i called

the function as follows:

h1 =conv(signal1,signal2);

It gives me an error saying : "Too many output arguments"

Can some one help me as why this error is occuring?

I know i can use function conv2 instead, but i would like to know

whats the problem in me using 'conv ' this way.

Thanks alot

Gehan

All Comments

Leave a comment...

  • 1 Comments
    • gehan mustafa wrote:

      >

      > Hello all,

      > I am facing a problem, it seems to be simple but honeestly it's

      > driving me crazy !

      > Im using matlab's built in function 'conv', to convolute 2 vectors

      > both of size 1*439 with double values. As it says in the help, this

      > function return a vector containing the convlved output. So i

      > called

      > the function as follows:

      > h1 =conv(signal1,signal2);

      > It gives me an error saying : "Too many output arguments"

      > Can some one help me as why this error is occuring?

      > I know i can use function conv2 instead, but i would like to know

      > whats the problem in me using 'conv ' this way.

      > Thanks alot

      > Gehan

      Why did you name your function conv?

      Try this at the matlab prompt:

      which conv -all

      HTH,

      John D'Errico

      #1; Tue, 29 Apr 2008 16:36:00 GMT