How to export the FFT analysis data from the FFT Analyzer app in the "powergui" block to the base workspace?

36 views (last 30 days)
Is it possible to export the FFT analysis data from the graphical interface of the FFT Analyzer app in the "powergui" block to the base workspace?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 23 Jun 2025
Edited: MathWorks Support Team on 23 Jun 2025
In MATLAB R2023b, it is not possible 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 by following the steps below.
1. Get initial default structure:
FFTDATA = power_fftscope(ScopeData);
2. Modify the "FFTDATA" structure to have desired options and settings, for example:
FFTDATA.cycles = 10; FFTDATA.fundamental = 50; FFTDATA.maxFrequency = 500;
3. Update the data structure: 
FFTDATA = power_fftscope(FFTDATA)
The attached files demonstrate this workflow with a known dataset.

More Answers (0)

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!