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

조회 수: 11 (최근 30일)
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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by