[Scilab-users] problem with convol()

Federico Miyara fmiyara at fceia.unr.edu.ar
Thu Aug 26 08:15:35 CEST 2021


Dear All,

The function convol() used to compute the discrete convolution between 
two signals yields always a row vector, regardless of the orientation of 
the input vectors:

--> a = [1 2 3]'
  a  =
    1.
    2.
    3.

--> b = [4 5]'
  b  =
    4.
    5.
--> c = convol(a, b)
  c  =
   4.   13.   22.   15.

If both input arguments have the same orientation, I think it should 
yield the same orientation. Indeed, this is how conv() behaves:

--> d = conv(a, b)
  d  =
    4.
    13.
    22.
    15.

If both arguments have different orientation, conv() keeps the 
orientation of the first argument.

Is there a reason why both functions behave differently?

Regards,

Federico Miyara



-- 
El software de antivirus Avast ha analizado este correo electrónico en busca de virus.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20210826/3455bc5b/attachment.htm>


More information about the users mailing list