Re: Differences in the convolution function between IDL and MATLAB [message #72141] |
Thu, 05 August 2010 20:53 |
penteado
Messages: 866 Registered: February 2018
|
Senior Member Administrator |
|
|
On Aug 6, 12:28 am, hyunsprk <hyunsoor...@gmail.com> wrote:
> When I use conv() function in MATLAB,
>
> it gives following array,
>
>>> conv(a,c)
>
> ans =
>
> 1 4 10 20 35 56 70 76 73 60 36
>
> when, a=[1,2,3,4,5,6], c=[1,2,3,4,5,6].
>
> Meanwhile, IDL gives following messages,
>
> IDL> print, convol(a,c)
> % CONVOL: Incompatible dimensions for Array and Kernel.
> % Execution halted at: $MAIN$
>
> when, a=[1,2,3,4,5,6], c=[1,2,3,4,5,6].
>
> Why this differences have been occurred? These two softwares have
> difference use of convolution functions?
IDL's help explains well what convol() does. Presumably, Matlab's help
would say what conv() does, so it seems you can compare them.
|
|
|