How to export the FFT analysis data from the Powergui FFT Analysis Tool to the base workspace
55 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 22 Jan. 2019
Bearbeitet: MathWorks Support Team
am 10 Nov. 2023
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?
Akzeptierte Antwort
MathWorks Support Team
am 10 Nov. 2023
Bearbeitet: MathWorks Support Team
am 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
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spectral Measurements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!