How to embed a spectrum analyzer into the GUI created by App Designer

12 ビュー (過去 30 日間)
Geunbae Kim
Geunbae Kim 2023 年 8 月 28 日
コメント済み: Abderrahim. B 2023 年 9 月 25 日
Hello
I'd like to use spectrum anaylzer on my application created using App Designer.
But it is not embedded on my application window.
My codes are as follows :
-----------------------------------------------
function ButtonPushed(app, event)
..........
% % Spectrum Analyzer
spectrum = spectrumAnalyzer('SampleRate', Fs);
spectrum(waveform);
release(spectrum);
----------------------------------------------
Please let me know how to do it.
Thank you.
GB Kim

採用された回答

Abderrahim. B
Abderrahim. B 2023 年 8 月 28 日
Hi!
I don't think there is a way to embed spectrum analyzer directly into your app, however there are multiple workarounds, one of them is to calculate power specta using pspectrum function and then use semilogy to plot against frequency.
Let me know if this helps.
  2 件のコメント
Geunbae Kim
Geunbae Kim 2023 年 8 月 31 日
Hello,
I appreciate your comments and the example source code.
It is very nice to implement my application.
THanks again.
GB
Abderrahim. B
Abderrahim. B 2023 年 9 月 25 日
My pleasure to help!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpectral Measurements についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by