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

12 次查看(过去 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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Spectral Measurements 的更多信息

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by