About 2,240,000 results
Open links in new tab
  1. What is the equivalent Python function for "filter" in MATLAB?

    Sep 16, 2015 · The closest equivalent in MATLAB is to use logical indexing to filter out elements you don't need: l = [1,2,3,4]; l2 = l(l > 2); What filter in Python does is that it returns another list …

  2. python - Matlab filter() with SciPy lfilter() - Stack Overflow

    Jan 19, 2012 · According to their documentation for Matlab filter () and SciPy lfilter (), it seems like they should be "compatible". However I have a problem, porting larger Matlab code in Python, …

  3. The equivalent function of Matlab imfilter in Python

    Mar 3, 2014 · I needed to replicate the exact same results for a Gaussian filter from Matlab in Python and came up with the following: Matlab: A = imfilter(A, fspecial('gaussian',12,3)); …

  4. filters - Differences between Python and MATLAB filtfilt

    Running MATLAB R2012b, Spyder 2.2.0 with Python 2.7, SciPy 0.12.0 on Windows 7 x64. In MATLAB: [b,a] = butter(5, [0.75*2/30, 5.0*2/30], 'bandpass'); y = filtfilt(b, a, input_signal)

  5. signal analysis - Evaluate filter matlab function on scipy - Signal ...

    Oct 7, 2021 · In the Python version you initialize the filter state and in the Matlab version you don't. Hence the result is different. lfilter_zi() calculates the filter state for a unit step response.

  6. matlab中滤波器filter函数与python中lfilter函数 - CSDN博客

    MATLAB filter2 和 conv2 函数说明 在 MATLAB 中,filter2 函数实现二维数字滤波器.conv2 函数实现二维卷积. filter2(H, X, mode) 等价于 conv2(X, rot90(H,2), mode). 其中,H 表示有理传 …

  7. filters - Convert matlab line to scipy signal processing line

    Mar 9, 2022 · The matlab filter is wheelFilt=designfilt('lowpassiir','FilterOrder',15,'PassbandFrequency',1000,'PassbandRipple',0.0001,'SampleRate',2000); …

  8. Why Is Python’s butter + filtfilt Giving Different Results Than MATLAB

    May 12, 2025 · I'm trying to reproduce a bandpass filter implemented in MATLAB using Python's `scipy.signal.butter` and `filtfilt`. The goal is to apply a zero-phase Butterworth bandpass filter …

  9. Understand Moving Average Filter with Python & Matlab

    Nov 23, 2010 · In Matlab, we can use the filter function or conv (convolution) to implement the moving average FIR filter. We can note from the difference equation and transfer function of …

  10. MatLab filter design vs. Python - Stack Overflow

    Sep 23, 2022 · Still, there is a filter that I've tried hard to achieve the same result: fdesign.highpass and design in MatLab: hp = fdesign.highpass('N, Fc',order, FC, Fs); Hd = …

  11. Some results have been removed
Refresh