HOW TO GET FFT

3 visualizzazioni (ultimi 30 giorni)
Andreas
Andreas il 9 Apr 2012
Risposto: Sabin il 26 Giu 2025
I need to get hte fft of a voltage, measured with voltage sensor(simscape) and then ps-to-simulink converter. The command window in matlab shows: "Warning: Reported by S-Function 'sdspfft2' in 'pwm_control_2/FFT': Computing the FFT of a scalar input."
Do I need to set some settings insode the fft block, or better use another FFT block (e.g. from simpower). For the data types do I need to specify something or leave it as is (inherit..)?
Thanks for helping

Risposte (1)

Sabin
Sabin il 26 Giu 2025
Without a model we can only speculate. One way to analyze this can be by data loging and then running fft in MATLAB instead of trying to compute it on the fly. In Simscape Electrical includes the Fourier Analysis block that performs a Fourier analysis on the input signal in either discrete or continuous time.

Prodotti

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by