Python Forum
Convolution "same" in Python doesn't work as Matlab
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Convolution "same" in Python doesn't work as Matlab
#5
(Sep-30-2020, 02:46 PM)DeaD_EyE Wrote: You can trim the second array to the same size of the first array.
The other options for mode aren't helpful.

How is matlab doing this?

What do you mean by "how is matlab doing this" ?

As in my previous post, Matlab's result of a 'same' convolution always has the same size of the first parameter array.
Reply


Messages In This Thread
RE: Convolution "same" in Python doesn't work as Matlab - by claw91 - Oct-01-2020, 08:59 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  problem of converting Matlab code to python DongyanZ 2 1,408 Feb-03-2023, 01:04 PM
Last Post: jefsummers
  Numpy doesn't work in Spyder 4.1.3 player1681 1 2,134 Jun-02-2020, 11:26 AM
Last Post: jefsummers
  Python equivalent of Matlab code kwokmaster 5 7,073 Apr-03-2020, 12:02 AM
Last Post: scidam
  scipy interp2d doesn't work player1681 4 4,464 Feb-05-2020, 09:50 AM
Last Post: player1681
  Is there similar function to lsqnonlin (in matlab) in python? Jay_Nerella 1 5,944 Nov-11-2019, 08:40 AM
Last Post: feli_x
  Matlab to Python Ariane 6 7,071 Jun-14-2018, 12:08 PM
Last Post: Ariane
  How to use .m matlab file in python ? sameer 5 15,356 May-10-2018, 09:39 AM
Last Post: wavic
  cx_Freeze doesn't seem to work owenwalker65 7 16,813 Dec-07-2017, 02:23 AM
Last Post: issac_n
  Importing matlab cell array (.mat) into a python list scanato 0 8,656 Nov-15-2017, 11:04 AM
Last Post: scanato
  Numpy or Scipy Variance Convolution TimWebPhoenix 0 3,340 Jul-11-2017, 12:41 PM
Last Post: TimWebPhoenix

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020