How to set the configuration of Powergui FFT analysis tool by code ?

7 views (last 30 days)
I currently working on MATLAB GUI and I want to set the Max Frequency in Powergui FFT analysis tool by coding in m file of my GUI.
I try to use 'set' command but it not worked.
*P = power_fftscope;
set(P,'MaxFrequency','3000')*
so, I would like to ask you Is that possible to do this?
Thank you so much

Accepted Answer

Sebastian Castro
Sebastian Castro on 27 Jan 2016
The power_fftscope function doesn't access the actual user interface. It simply provides a command-line interface to perform the analysis.
For example, you can run an analysis as follows:
>> FFTDATA = power_fftscope(ScopeData); % Uses default parameters
>> FFTDATA.MaxFrequency = 3000;
>> FFTDATA = power_fftscope(FFTDATA); % Overwrites FFTDATA with new settings
- Sebastian

More Answers (0)

Community Treasure Hunt

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

Start Hunting!