difference in transfer function calculation in matlab and python
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
i have developed below code in matlab and trying implement samething in python
but getting different outputs from matlab and python.
can you help here to convert this code to python
Matlab code
[Y, freq] = tfestimate(in, out, hanning(NFFT), round(overlap*NFFT), [], sample_rate);
example output
freq:freq= [0;0.0101800266860033]
Python code
f, Pxy = csd(out_signal,in_signal, fs=sample_rate, window=windows.hann(NFFT, sym=True), average='median', nperseg=NFFT, noverlap=int(overlap * NFFT), scaling='spectrum')
example output
freq: [0; 0.0132058240]
3 commentaires
Mathieu NOE
le 14 Avr 2025
hello again
as I said before , the python code you mention is not the transfer estimate
Réponses (0)
Voir également
Catégories
En savoir plus sur Call Python from MATLAB dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!