Azzera filtri
Azzera filtri

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

60 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: 
fft_analysis_export_example_2018b.m 
fft_analysis_export_example_2018b.slx

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by