I tried to call decimate function in Scipy from Matlab but met an error. Can somebody point me in a direction, please?
Here is a code of Matlab
py.print("Hello, Python!")
% generate a sin signal
clear
fc=2; % in Hz
f_sampling=100; %in Hz
t=0:1/f_sampling:3; %in 3s
y=sin(2*pi*fc.*t); % signal
plot(t,y)
y_dem=py.scipy.signal.decimate(y,5);
>> try_python
Hello, Python!
Error using signaltools>decimate (line 4401)
Python Error: TypeError: 'float' object cannot be interpreted as an integer