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)
Show older comments
MathWorks Support Team
on 22 Jan 2019
Edited: MathWorks Support Team
on 23 Jun 2025
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
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.
0 Comments
More Answers (0)
See Also
Categories
Find more on Standard File Formats in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!