I have an ECG signal having 500 Hz frequency and a signal having 257 HZ frequency. To process both signals i want both signals having frequency 300 Hz. So how to downsmaple the first ECG signal to 300 Hz and upsample the 2nd ECG signal to 300 Hz in python or MATLAB?