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

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

 Réponse acceptée

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

2 commentaires

Thank you so much. Sebastian
first command line (scope data)does not work. ML does not recognise 'scopedata' please clarify

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by