How to export the FFT analysis data from the Powergui FFT Analysis Tool to the base workspace

70 visualizzazioni (ultimi 30 giorni)
Is it possible to export the FFT analysis data from the graphical interface of the FFT analysis tool in the Powergui block to the base workspace?

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 10 Nov 2023
Modificato: MathWorks Support Team il 10 Nov 2023
In MATLAB R2018b there is not a way to directly export the FFT analysis from the graphical interface opened from the Powergui block.The workaround is to use command line tools to obtain the desired data in the base workspace:
1. Get initial default structure:
FFTDATA = power_fftscope(ScopeData);
2. Modify FFTDATA structure to have desired options and settings, e.g. 
FFTDATA.cycles = 10;
FFTDATA.fundamental = 50;
FFTDATA.maxFrequency = 500;
3. Update the data structure: FFTDATA = power_fftscope(FFTDATA)
For an example using a signal with a known spectrum, see the attached files: 

Più risposte (0)


Scopri di più su Fourier Analysis and Filtering in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by