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

60 次查看(过去 30 天)
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?

采纳的回答

MathWorks Support Team
编辑:MathWorks Support Team 2023-11-10
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Spectral Measurements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by