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

 採用された回答

Sebastian Castro
Sebastian Castro 2016 年 1 月 27 日

0 投票

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 件のコメント

Noppadon Theerawattanaset
Noppadon Theerawattanaset 2016 年 1 月 27 日
Thank you so much. Sebastian
srikantanss ss
srikantanss ss 2016 年 8 月 9 日
first command line (scope data)does not work. ML does not recognise 'scopedata' please clarify

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by